1Test2::Event::Encoding(U3s)er Contributed Perl DocumentatTieosnt2::Event::Encoding(3)
2
3
4

NAME

6       Test2::Event::Encoding - Set the encoding for the output stream
7

DESCRIPTION

9       The encoding event is generated when a test file wants to specify the
10       encoding to be used when formatting its output. This event is intended
11       to be produced by formatter classes and used for interpreting test
12       names, message contents, etc.
13

SYNOPSIS

15           use Test2::API qw/context/;
16           use Test2::Event::Encoding;
17
18           my $ctx = context();
19           my $event = $ctx->send_event('Encoding', encoding => 'UTF-8');
20

METHODS

22       Inherits from Test2::Event. Also defines:
23
24       $encoding = $e->encoding
25           The encoding being specified.
26

SOURCE

28       The source code repository for Test2 can be found at
29       http://github.com/Test-More/test-more/.
30

MAINTAINERS

32       Chad Granum <exodist@cpan.org>
33

AUTHORS

35       Chad Granum <exodist@cpan.org>
36
38       Copyright 2019 Chad Granum <exodist@cpan.org>.
39
40       This program is free software; you can redistribute it and/or modify it
41       under the same terms as Perl itself.
42
43       See http://dev.perl.org/licenses/
44
45
46
47perl v5.30.2                      2020-03-31         Test2::Event::Encoding(3)
Impressum