line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test2::Formatter; |
2
|
57
|
|
|
57
|
|
578
|
use strict; |
|
57
|
|
|
|
|
75
|
|
|
57
|
|
|
|
|
1467
|
|
3
|
57
|
|
|
57
|
|
180
|
use warnings; |
|
57
|
|
|
|
|
69
|
|
|
57
|
|
|
|
|
5837
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.000043'; |
6
|
|
|
|
|
|
|
$VERSION = eval $VERSION; ## no critic (BuiltinFunctions::ProhibitStringyEval) |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
my %ADDED; |
9
|
|
|
|
|
|
|
sub import { |
10
|
1
|
|
|
1
|
|
7
|
my $class = shift; |
11
|
1
|
50
|
|
|
|
2
|
return if $class eq __PACKAGE__; |
12
|
1
|
50
|
|
|
|
3
|
return if $ADDED{$class}++; |
13
|
1
|
|
|
|
|
383
|
require Test2::API; |
14
|
1
|
|
|
|
|
4
|
Test2::API::test2_formatter_add($class); |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
0
|
|
|
0
|
0
|
|
sub hide_buffered { 1 } |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
1; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
__END__ |