line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#line 1 |
2
|
1
|
|
|
1
|
|
4
|
package Test2::Event::Bail; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
20
|
|
3
|
1
|
|
|
1
|
|
4
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
37
|
|
4
|
|
|
|
|
|
|
use warnings; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '1.302073'; |
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
4
|
|
|
1
|
|
|
|
|
38
|
|
9
|
1
|
|
|
1
|
|
15
|
BEGIN { require Test2::Event; our @ISA = qw(Test2::Event) } |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
10
|
|
|
|
|
|
|
use Test2::Util::HashBase qw{reason}; |
11
|
|
|
|
|
|
|
|
12
|
0
|
|
|
0
|
1
|
|
sub callback { |
13
|
0
|
|
|
|
|
|
my $self = shift; |
14
|
|
|
|
|
|
|
my ($hub) = @_; |
15
|
0
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
$hub->set_bailed_out($self); |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
0
|
|
|
0
|
1
|
|
# Make sure the tests terminate |
20
|
|
|
|
|
|
|
sub terminate { 255 }; |
21
|
0
|
|
|
0
|
1
|
|
|
22
|
|
|
|
|
|
|
sub global { 1 }; |
23
|
0
|
|
|
0
|
1
|
|
|
24
|
|
|
|
|
|
|
sub causes_fail { 1 } |
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
0
|
1
|
|
sub summary { |
27
|
|
|
|
|
|
|
my $self = shift; |
28
|
0
|
0
|
|
|
|
|
return "Bail out! " . $self->{+REASON} |
29
|
|
|
|
|
|
|
if $self->{+REASON}; |
30
|
0
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
return "Bail out!"; |
32
|
|
|
|
|
|
|
} |
33
|
0
|
|
|
0
|
1
|
|
|
34
|
|
|
|
|
|
|
sub diagnostics { 1 } |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
__END__ |