Test2::EventFacet::Control - 集線器動作和行為的切面。
當事件需要向 Test2 內部提供指示時,會使用此切面。
- #$string = $control->{details}
-
- #$string = $control->details()
-
特殊行為的人類可讀說明。
- #$bool = $control->{global}
-
- #$bool = $control->global()
-
如果事件本質上是全域性的,且所有集線器都應看到,則為 True。
- #$exit = $control->{terminate}
-
- #$exit = $control->terminate()
-
如果測試應立即結束,則已定義,該值為結束代碼,且可能是 0
。
- #$bool = $control->{halt}
-
- #$bool = $control->halt()
-
如果應立即停止所有測試,則為 True。
- #$bool = $control->{has_callback}
-
- #$bool = $control->has_callback()
-
如果應呼叫事件中的 callback($hub)
方法,則為 True。
- #$encoding = $control->{encoding}
-
- #$encoding = $control->encoding()
-
這可用於從此事件開始變更編碼。
- #$phase = $control->{phase}
-
- #$phase = $control->phase()
-
用於表示已發生階段變更。目前僅表示 perl END 階段。
Test2 的原始碼存放庫位於 http://github.com/Test-More/test-more/。
#維護人員
- #Chad Granum <exodist@cpan.org>
-
- #Chad Granum <exodist@cpan.org>
-
版權所有 2020 Chad Granum <exodist@cpan.org>。
此程式為自由軟體;您可以在與 Perl 相同的條款下重新散布或修改它。
請參閱 http://dev.perl.org/licenses/