line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::Stream::Event::Exception; |
2
|
107
|
|
|
107
|
|
1064
|
use strict; |
|
107
|
|
|
|
|
242
|
|
|
107
|
|
|
|
|
2813
|
|
3
|
107
|
|
|
107
|
|
530
|
use warnings; |
|
107
|
|
|
|
|
219
|
|
|
107
|
|
|
|
|
2908
|
|
4
|
|
|
|
|
|
|
|
5
|
107
|
|
|
107
|
|
533
|
use Test::Stream::Formatter::TAP qw/OUT_ERR/; |
|
107
|
|
|
|
|
196
|
|
|
107
|
|
|
|
|
742
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
use Test::Stream::Event( |
8
|
107
|
|
|
|
|
781
|
accessors => [qw/error/], |
9
|
107
|
|
|
107
|
|
576
|
); |
|
107
|
|
|
|
|
228
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub to_tap { |
12
|
1
|
|
|
1
|
1
|
2
|
my $self = shift; |
13
|
|
|
|
|
|
|
return [ |
14
|
1
|
|
|
|
|
10
|
OUT_ERR, $self->{+ERROR} |
15
|
|
|
|
|
|
|
]; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub update_state { |
19
|
6
|
|
|
6
|
1
|
27
|
my $self = shift; |
20
|
6
|
|
|
|
|
15
|
my ($state) = @_; |
21
|
|
|
|
|
|
|
|
22
|
6
|
|
|
|
|
34
|
$state->bump_fail; |
23
|
6
|
|
|
|
|
19
|
return undef; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
5
|
|
|
5
|
1
|
32
|
sub causes_fail { 1 } |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |