TAP::Parser::Result::Comment - 註解結果代碼。
版本 3.44
這是 TAP::Parser::Result 的子類別。如果遇到註解行,將傳回此類別的代碼。
1..1
ok 1 - woo hooo!
# this is a comment
主要是列在這裡讓 pod 涵蓋率測試的悲慘叫聲閉嘴。它們讓我整夜睡不著覺。
as_string
請注意,此方法僅傳回前面加上「# 」的註解。
comment
if ( $result->is_comment ) {
my $comment = $result->comment;
print "I have something to say: $comment";
}