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 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