Test2::...Control(3pm)
π¦ Test2::...Control(3pm) π¦
okay so bestie, welcome to the Perl Programmers Reference Guide page for Test2::EventFacet::Control. This is the control facet, and it's exactly what an event uses when it needs to give instructions to the Test2 internals. No cap, it's giving backstage-pass energy. π
πΈ NAME πΈ
Test2::EventFacet::Control β facet for hub actions and behaviors. β¨
π DESCRIPTION π
This facet is used when the event needs to give instructions to the Test2 internals. That's the whole gig, and it ate. π
π FIELDS π
Each field is shown in both hash-key form and method form, so you can spot the vibe either way. π«
$string = $control->{details},$string = $control->details()β human-readable explanation for the special behavior. Lowkey the "what's going on" note. π$bool = $control->{global},$bool = $control->global()β true if the event is global in nature and should be seen by all hubs. π$exit = $control->{terminate},$exit = $control->terminate()β defined if the test should immediately exit; the value is the exit code and may be0. Yes, bestie, it may be0. π$bool = $control->{halt},$bool = $control->halt()β true if all testing should be halted immediately. Full stop, no testing, bye. π$bool = $control->{has_callback},$bool = $control->has_callback()β true if thecallback($hub)method on the event should be called. The callback is the main character here. π$encoding = $control->{encoding},$encoding = $control->encoding()β this can be used to change the encoding from this event onward. Encoding glow-up, starting now. π$phase = $control->{phase},$phase = $control->phase()β used to signal that a phase change has occurred. Currently only the perl END phase is signaled. So rn, that's the only phase on the menu. π
π SOURCE π
The source code repository for Test2 can be found at <https://github.com/Test-More/test-more/>. π«Ά
π MAINTAINERS π
Chad Granum <exodist@cpan.org> β holding it down. π
π«Ά AUTHORS π«Ά
Chad Granum <exodist@cpan.org> β also the author. Same legend, different section. β¨
π 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/>. π
okay bestie, that's the whole page! π The footer says perl v5.42.3, dated 2026-11-03, and the page is Test2::...Control(3pm). Mwah π
π¦ 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