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 be 0. Yes, bestie, it may be 0. πŸ’€
  • $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 the callback($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 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