1Test2::Event::Encoding(U3s)er Contributed Perl DocumentatTieosnt2::Event::Encoding(3)
2
3
4
6 Test2::Event::Encoding - Set the encoding for the output stream
7
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
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
22 Inherits from Test2::Event. Also defines:
23
24 $encoding = $e->encoding
25 The encoding being specified.
26
28 The source code repository for Test2 can be found at
29 http://github.com/Test-More/test-more/.
30
32 Chad Granum <exodist@cpan.org>
33
35 Chad Granum <exodist@cpan.org>
36
38 Copyright 2020 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.34.0 2021-09-29 Test2::Event::Encoding(3)