目錄

名稱

Test2::EventFacet::Parent - 事件的面向包含其他事件

說明

當事件包含其他事件(例如子測試)時,會使用此面向。

欄位

$string = $parent->{details}
$string = $parent->details()

事件的人類可讀描述。

$hid = $parent->{hid}
$hid = $parent->hid()

表示在父/子關係中的集線器 ID。

$arrayref = $parent->{children}
$arrayref = $parent->children()

包含在此事件下嵌套事件的 facet 資料雜湊的陣列參考。

若要取得實際事件,您需要直接從父事件取得。

$bool = $parent->{buffered}
$bool = $parent->buffered()

如果子測試已緩衝(表示格式化程式可能尚未看到它們),則為 True。

SOURCE

Test2 的原始碼儲存庫可以在 http://github.com/Test-More/test-more/ 中找到。

MAINTAINERS

Chad Granum <exodist@cpan.org>

AUTHORS

Chad Granum <exodist@cpan.org>

COPYRIGHT

版權所有 2020 Chad Granum <exodist@cpan.org>。

此程式為自由軟體;您可以在與 Perl 相同的條款下重新散布或修改它。

請參閱 http://dev.perl.org/licenses/