Test2::...ncoding(3)

πŸ“¦ version 1.302214, in opensuse-leap 16.0

🌸 NAME 🌸

Test2::Event::Encoding β€” Set the encoding for the output stream

Okay so this is the Test2::...ncoding(3) page from the User Contributed Perl Documentation, and yes bestie, the module we’re actually talking about is Test2::Event::Encoding. πŸ’…


✨ DESCRIPTION ✨

The encoding event is generated when a test file wants to specify the encoding to be used when formatting its output.

It’s giving β€œformatter classes produce me, and then I get used for interpreting test names, message contents, etc.” πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

use Test2::API qw/context/;
use Test2::Event::Encoding;

my $ctx = context();
my $event = $ctx->send_event('Encoding', encoding => 'UTF-8');

πŸ’… METHODS πŸ’…

Inherits from Test2::Event. Also defines:

πŸ’– $encoding = $e->encoding πŸ’–

The encoding being specified. That’s the whole vibe. ✨


πŸ¦‹ SOURCE πŸ¦‹

The source code repository for Test2 can be found at https://github.com/Test-More/test-more/. 🫢


πŸ‘‘ MAINTAINERS πŸ‘‘

Chad Granum <exodist@cpan.org>


🌈 AUTHORS 🌈

Chad Granum <exodist@cpan.org>


Copyright Chad Granum <exodist@cpan.org>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See https://dev.perl.org/licenses/ πŸ’œ


mwah πŸ’‹ this iconic little page was brought to you by perl v5.42.0, dated 2025-07-28, and the Test2::...ncoding(3) footer. periodt. πŸŽ€βœ¨

πŸ“¦ where this page comes from