1 package TAP::Parser::Result::Bailout;
6 use base 'TAP::Parser::Result';
10 TAP::Parser::Result::Bailout - Bailout result token.
18 our $VERSION = '3.43';
22 This is a subclass of L<TAP::Parser::Result>. A token of this class will be
23 returned if a bail out line is encountered.
27 Bail out! Well, so much for "woo hooo!"
29 =head1 OVERRIDDEN METHODS
31 Mainly listed here to shut up the pitiful screams of the pod coverage tests.
32 They keep me awake at night.
42 ##############################################################################
44 =head2 Instance Methods
48 if ( $result->is_bailout ) {
49 my $explanation = $result->explanation;
50 print "We bailed out because ($explanation)";
53 If, and only if, a token is a bailout token, you can get an "explanation" via
54 this method. The explanation is the text after the mystical "Bail out!" words
55 which appear in the tap output.
59 sub explanation { shift->{bailout} }
60 sub as_string { shift->{bailout} }