Test2::EventFacet::Control(3) User Contributed Perl Documentation Test2::EventFacet::Control(3)

# [NAME](#NAME)

Test2::EventFacet::Control - Facet for hub actions and behaviors.

# [DESCRIPTION](#DESCRIPTION)

This facet is used when the event needs to give instructions to the Test2 internals.

# [FIELDS](#FIELDS)

$string = $control-&gt;{details}

$string = $control-&gt;**details()**

Human readable explanation for the special behavior.

$bool = $control-&gt;{global}

$bool = $control-&gt;**global()**

True if the event is global in nature and should be seen by all hubs.

$exit = $control-&gt;{terminate}

$exit = $control-&gt;**terminate()**

Defined if the test should immediately exit, the value is the exit code and may be 0.

$bool = $control-&gt;{halt}

$bool = $control-&gt;**halt()**

True if all testing should be halted immediately.

$bool = $control-&gt;{has\_callback}

$bool = $control-&gt;**has\_callback()**

True if the callback($hub) method on the event should be called.

$encoding = $control-&gt;{encoding}

$encoding = $control-&gt;**encoding()**

This can be used to change the encoding from this event onward.

$phase = $control-&gt;{phase}

$phase = $control-&gt;**phase()**

Used to signal that a phase change has occurred. Currently only the perl END phase is signaled.

# [SOURCE](#SOURCE)

The source code repository for Test2 can be found at &lt;https://github.com/Test-More/test-more/&gt;.

# [MAINTAINERS](#MAINTAINERS)

[Chad Granum &lt;exodist@cpan.org&gt;](#Chad)

# [AUTHORS](#AUTHORS)

[Chad Granum &lt;exodist@cpan.org&gt;](#Chad~2)

# [COPYRIGHT](#COPYRIGHT)

Copyright Chad Granum &lt;exodist@cpan.org&gt;.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See &lt;https://dev.perl.org/licenses/&gt;

2026-09-04 perl v5.44.0

---

Document: Test2::EventFacet::Control(3pm) from perl-test-simple 1.302225-r0 (Chainguard OS)
Source: https://github.com/Test-More/test-more
