1TAP::Parser::Result::BaUisleorutC(o3n)tributed Perl DocuTmAePn:t:aPtairosner::Result::Bailout(3)
2
3
4
6 TAP::Parser::Result::Bailout - Bailout result token.
7
9 Version 3.42
10
12 This is a subclass of TAP::Parser::Result. A token of this class will
13 be returned if a bail out line is encountered.
14
15 1..5
16 ok 1 - woo hooo!
17 Bail out! Well, so much for "woo hooo!"
18
20 Mainly listed here to shut up the pitiful screams of the pod coverage
21 tests. They keep me awake at night.
22
23 • "as_string"
24
25 Instance Methods
26 "explanation"
27
28 if ( $result->is_bailout ) {
29 my $explanation = $result->explanation;
30 print "We bailed out because ($explanation)";
31 }
32
33 If, and only if, a token is a bailout token, you can get an
34 "explanation" via this method. The explanation is the text after the
35 mystical "Bail out!" words which appear in the tap output.
36
37
38
39perl v5.32.1 2021-01-27 TAP::Parser::Result::Bailout(3)