line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test2::Event::Bail; |
2
|
246
|
|
|
246
|
|
2107
|
use strict; |
|
246
|
|
|
|
|
545
|
|
|
246
|
|
|
|
|
7512
|
|
3
|
246
|
|
|
246
|
|
1270
|
use warnings; |
|
246
|
|
|
|
|
469
|
|
|
246
|
|
|
|
|
13951
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '1.302180'; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
|
8
|
246
|
|
|
246
|
|
1480
|
BEGIN { require Test2::Event; our @ISA = qw(Test2::Event) } |
|
246
|
|
|
|
|
10280
|
|
9
|
246
|
|
|
246
|
|
1756
|
use Test2::Util::HashBase qw{reason buffered}; |
|
246
|
|
|
|
|
586
|
|
|
246
|
|
|
|
|
1819
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
# Make sure the tests terminate |
12
|
1
|
|
|
1
|
1
|
5
|
sub terminate { 255 }; |
13
|
|
|
|
|
|
|
|
14
|
2
|
|
|
2
|
1
|
8
|
sub global { 1 }; |
15
|
|
|
|
|
|
|
|
16
|
1
|
|
|
1
|
1
|
11
|
sub causes_fail { 1 } |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub summary { |
19
|
2
|
|
|
2
|
1
|
5
|
my $self = shift; |
20
|
|
|
|
|
|
|
return "Bail out! " . $self->{+REASON} |
21
|
2
|
100
|
|
|
|
14
|
if $self->{+REASON}; |
22
|
|
|
|
|
|
|
|
23
|
1
|
|
|
|
|
4
|
return "Bail out!"; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
1
|
|
|
1
|
1
|
4
|
sub diagnostics { 1 } |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub facet_data { |
29
|
26
|
|
|
26
|
1
|
63
|
my $self = shift; |
30
|
26
|
|
|
|
|
91
|
my $out = $self->common_facet_data; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
$out->{control} = { |
33
|
|
|
|
|
|
|
global => 1, |
34
|
|
|
|
|
|
|
halt => 1, |
35
|
26
|
|
|
|
|
102
|
details => $self->{+REASON}, |
36
|
|
|
|
|
|
|
terminate => 255, |
37
|
|
|
|
|
|
|
}; |
38
|
|
|
|
|
|
|
|
39
|
26
|
|
|
|
|
73
|
return $out; |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
1; |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
__END__ |