line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::Stream::Event::Exception; |
2
|
107
|
|
|
107
|
|
1083
|
use strict; |
|
107
|
|
|
|
|
204
|
|
|
107
|
|
|
|
|
2773
|
|
3
|
107
|
|
|
107
|
|
511
|
use warnings; |
|
107
|
|
|
|
|
198
|
|
|
107
|
|
|
|
|
2926
|
|
4
|
|
|
|
|
|
|
|
5
|
107
|
|
|
107
|
|
543
|
use Test::Stream::Formatter::TAP qw/OUT_ERR/; |
|
107
|
|
|
|
|
185
|
|
|
107
|
|
|
|
|
759
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
use Test::Stream::Event( |
8
|
107
|
|
|
|
|
770
|
accessors => [qw/error/], |
9
|
107
|
|
|
107
|
|
559
|
); |
|
107
|
|
|
|
|
238
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub to_tap { |
12
|
1
|
|
|
1
|
1
|
2
|
my $self = shift; |
13
|
|
|
|
|
|
|
return [ |
14
|
1
|
|
|
|
|
9
|
OUT_ERR, $self->{+ERROR} |
15
|
|
|
|
|
|
|
]; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub update_state { |
19
|
6
|
|
|
6
|
1
|
15
|
my $self = shift; |
20
|
6
|
|
|
|
|
14
|
my ($state) = @_; |
21
|
|
|
|
|
|
|
|
22
|
6
|
|
|
|
|
31
|
$state->bump_fail; |
23
|
6
|
|
|
|
|
13
|
return undef; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
5
|
|
|
5
|
1
|
26
|
sub causes_fail { 1 } |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |