line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#line 1 |
2
|
1
|
|
|
1
|
|
4
|
package Test::Builder::Formatter; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
20
|
|
3
|
1
|
|
|
1
|
|
3
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
55
|
|
4
|
|
|
|
|
|
|
use warnings; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '1.302073'; |
7
|
1
|
|
|
1
|
|
377
|
|
|
1
|
|
|
|
|
3138
|
|
8
|
|
|
|
|
|
|
BEGIN { require Test2::Formatter::TAP; our @ISA = qw(Test2::Formatter::TAP) } |
9
|
1
|
|
|
1
|
|
6
|
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
5
|
|
10
|
|
|
|
|
|
|
use Test2::Util::HashBase qw/no_header no_diag/; |
11
|
|
|
|
|
|
|
|
12
|
1
|
|
|
1
|
|
7
|
BEGIN { |
13
|
1
|
|
|
|
|
4
|
*OUT_STD = Test2::Formatter::TAP->can('OUT_STD'); |
14
|
|
|
|
|
|
|
*OUT_ERR = Test2::Formatter::TAP->can('OUT_ERR'); |
15
|
1
|
|
|
|
|
3
|
|
16
|
1
|
|
|
|
|
220
|
my $todo = OUT_ERR() + 1; |
|
0
|
|
|
|
|
0
|
|
17
|
|
|
|
|
|
|
*OUT_TODO = sub() { $todo }; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
__PACKAGE__->register_event('Test::Builder::TodoDiag', 'event_todo_diag'); |
21
|
|
|
|
|
|
|
|
22
|
1
|
|
|
1
|
0
|
2
|
sub init { |
23
|
1
|
|
|
|
|
5
|
my $self = shift; |
24
|
1
|
|
|
|
|
138
|
$self->SUPER::init(@_); |
25
|
|
|
|
|
|
|
$self->{+HANDLES}->[OUT_TODO] = $self->{+HANDLES}->[OUT_STD]; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
0
|
|
|
0
|
1
|
0
|
sub event_todo_diag { |
29
|
0
|
|
|
|
|
0
|
my $self = shift; |
30
|
0
|
|
|
|
|
0
|
my @out = $self->event_diag(@_); |
31
|
0
|
|
|
|
|
0
|
$out[0]->[0] = OUT_TODO(); |
32
|
|
|
|
|
|
|
return @out; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
0
|
|
|
0
|
1
|
0
|
sub event_diag { |
36
|
0
|
0
|
|
|
|
0
|
my $self = shift; |
37
|
0
|
|
|
|
|
0
|
return if $self->{+NO_DIAG}; |
38
|
|
|
|
|
|
|
return $self->SUPER::event_diag(@_); |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
1
|
|
|
1
|
1
|
25
|
sub event_plan { |
42
|
1
|
50
|
|
|
|
3
|
my $self = shift; |
43
|
1
|
|
|
|
|
5
|
return if $self->{+NO_HEADER}; |
44
|
|
|
|
|
|
|
return $self->SUPER::event_plan(@_); |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
|
47
|
0
|
|
|
0
|
0
|
|
sub event_ok_multiline { |
48
|
0
|
|
|
|
|
|
my $self = shift; |
49
|
|
|
|
|
|
|
my ($out, $space, @extra) = @_; |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
return( |
52
|
0
|
|
|
|
|
|
[OUT_STD, "$out\n"], |
|
0
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
map {[OUT_STD, "# $_\n"]} @extra, |
54
|
|
|
|
|
|
|
); |
55
|
|
|
|
|
|
|
} |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
1; |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
__END__ |