Add built local::lib
[catagits/Gitalist.git] / local-lib5 / lib / perl5 / TAP / Parser / Result / Bailout.pm
CommitLineData
3fea05b9 1package TAP::Parser::Result::Bailout;
2
3use strict;
4
5use vars qw($VERSION @ISA);
6use TAP::Parser::Result;
7@ISA = 'TAP::Parser::Result';
8
9=head1 NAME
10
11TAP::Parser::Result::Bailout - Bailout result token.
12
13=head1 VERSION
14
15Version 3.17
16
17=cut
18
19$VERSION = '3.17';
20
21=head1 DESCRIPTION
22
23This is a subclass of L<TAP::Parser::Result>. A token of this class will be
24returned if a bail out line is encountered.
25
26 1..5
27 ok 1 - woo hooo!
28 Bail out! Well, so much for "woo hooo!"
29
30=head1 OVERRIDDEN METHODS
31
32Mainly listed here to shut up the pitiful screams of the pod coverage tests.
33They keep me awake at night.
34
35=over 4
36
37=item * C<as_string>
38
39=back
40
41=cut
42
43##############################################################################
44
45=head2 Instance Methods
46
47=head3 C<explanation>
48
49 if ( $result->is_bailout ) {
50 my $explanation = $result->explanation;
51 print "We bailed out because ($explanation)";
52 }
53
54If, and only if, a token is a bailout token, you can get an "explanation" via
55this method. The explanation is the text after the mystical "Bail out!" words
56which appear in the tap output.
57
58=cut
59
60sub explanation { shift->{bailout} }
61sub as_string { shift->{bailout} }
62
631;