Test2:...coding(3perl)
π NAME π
Test2::Event::Encoding β bestie, it sets the encoding for the output stream β¨
π DESCRIPTION π
okay so listen. the encoding event shows up when a test file is like "hey, here's the encoding i want used when my output gets formatted" π¦
this event is intended to be produced by formatter classes, and it's there so you can interpret test names, message contents, etc. properly. no cap, it's literally the vibe-setter for your bytes π
β¨ SYNOPSIS β¨
use Test2::API qw/context/;
use Test2::Event::Encoding;
my $ctx = context();
my $event = $ctx->send_event('Encoding', encoding => 'UTF-8');
πΈ METHODS πΈ
it inherits from Test2::Event. and also, it defines:
$encoding = $e->encodingβ this is the encoding that's being specified π« the whole point, the main character of the method roster π
π¦ SOURCE π¦
the source code repository for Test2 lives right here, go peek, it's giving open source:
https://github.com/Test-More/test-more/
π MAINTAINERS π
Chad Granum <exodist@cpan.org> β carrying this whole thing on his back fr fr π«Ά
π AUTHORS π
Chad Granum <exodist@cpan.org> β yes same icon, he wrote it AND he maintains it, legend behaviour π
β 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/
mwah π that's the whole page, and it's brought to you by perl v5.44.0, dated 2026-10-17 β periodt, go write some tests bestie π§ββοΈπ
π¦ where this page comes from
- arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms