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