line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::Stream::Event::Exception; |
2
|
107
|
|
|
107
|
|
685
|
use strict; |
|
107
|
|
|
|
|
121
|
|
|
107
|
|
|
|
|
2412
|
|
3
|
107
|
|
|
107
|
|
310
|
use warnings; |
|
107
|
|
|
|
|
111
|
|
|
107
|
|
|
|
|
2283
|
|
4
|
|
|
|
|
|
|
|
5
|
107
|
|
|
107
|
|
328
|
use Test::Stream::Formatter::TAP qw/OUT_ERR/; |
|
107
|
|
|
|
|
108
|
|
|
107
|
|
|
|
|
507
|
|
6
|
|
|
|
|
|
|
|
7
|
107
|
|
|
107
|
|
379
|
use base 'Test::Stream::Event'; |
|
107
|
|
|
|
|
132
|
|
|
107
|
|
|
|
|
6559
|
|
8
|
107
|
|
|
107
|
|
425
|
use Test::Stream::HashBase accessors => [qw/error/]; |
|
107
|
|
|
|
|
119
|
|
|
107
|
|
|
|
|
567
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub to_tap { |
11
|
1
|
|
|
1
|
1
|
2
|
my $self = shift; |
12
|
|
|
|
|
|
|
return [ |
13
|
1
|
|
|
|
|
8
|
OUT_ERR, $self->{+ERROR} |
14
|
|
|
|
|
|
|
]; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub update_state { |
18
|
6
|
|
|
6
|
1
|
14
|
my $self = shift; |
19
|
6
|
|
|
|
|
7
|
my ($state) = @_; |
20
|
|
|
|
|
|
|
|
21
|
6
|
|
|
|
|
22
|
$state->bump_fail; |
22
|
6
|
|
|
|
|
11
|
return undef; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
5
|
|
|
5
|
1
|
18
|
sub causes_fail { 1 } |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
__END__ |