目錄

名稱

TAP::Parser::Result::Comment - 註解結果代碼。

版本

版本 3.44

說明

這是 TAP::Parser::Result 的子類別。如果遇到註解行,將傳回此類別的代碼。

1..1
ok 1 - woo hooo!
# this is a comment

覆寫的方法

主要是列在這裡讓 pod 涵蓋率測試的悲慘叫聲閉嘴。它們讓我整夜睡不著覺。

實例方法

comment

if ( $result->is_comment ) {
    my $comment = $result->comment;
    print "I have something to say:  $comment";
}