Test2::...ncoding(3pm)
okay so bestie, this is Test2::Event::Encoding from the Perl Programmers Reference Guide, 3pm section β and it's literally the event for telling your output stream what encoding to use π
β¨
π NAME π
Test2::Event::Encoding β Set the encoding for the output stream. That's the whole vibe: encoding, but as an event. Slay.
πΈ DESCRIPTION πΈ
The encoding event gets generated when a test file wants to specify the encoding that should be used when formatting its output.
Formatter classes are the intended producers of this event, and it's used for interpreting test names, message contents, etc. Not me explaining an event that's just here to handle encoding realness ππ
β¨ SYNOPSIS β¨
use Test2::API qw/context/;
use Test2::Event::Encoding;
my $ctx = context();
my $event = $ctx->send_event('Encoding', encoding => 'UTF-8');
π METHODS π
This one inherits from Test2::Event β iconic inheritance behavior, no cap. It also defines:
$encoding = $e->encodingβ the encoding being specified, bestie. That's the method. That's what it does. π«Ά
π¦ SOURCE π¦
The source code repository for Test2 lives at https://github.com/Test-More/test-more/ β go look, it's giving open source excellence π
π MAINTAINERS π
- Chad Granum
<exodist@cpan.org>π
π AUTHORS π
- Chad Granum
<exodist@cpan.org>π
π COPYRIGHT π
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/ π
Catch you later, bestie β this page is from perl v5.42.3, dated 2026-11-03, and the footer banner says Test2::...ncoding(3pm) π
β¨
π¦ where this page comes from
- alpine 3.24: perl-doc 5.42.3-r0 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms