blib/lib/Test2/Formatter.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 11 | 12 | 91.6 |
branch | 2 | 4 | 50.0 |
condition | n/a | ||
subroutine | 3 | 4 | 75.0 |
pod | 0 | 1 | 0.0 |
total | 16 | 21 | 76.1 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Test2::Formatter; | ||||||
2 | 54 | 54 | 574 | use strict; | |||
54 | 57 | ||||||
54 | 1233 | ||||||
3 | 54 | 54 | 153 | use warnings; | |||
54 | 55 | ||||||
54 | 4665 | ||||||
4 | |||||||
5 | our $VERSION = '0.000042'; | ||||||
6 | |||||||
7 | my %ADDED; | ||||||
8 | sub import { | ||||||
9 | 1 | 1 | 7 | my $class = shift; | |||
10 | 1 | 50 | 3 | return if $class eq __PACKAGE__; | |||
11 | 1 | 50 | 3 | return if $ADDED{$class}++; | |||
12 | 1 | 415 | require Test2::API; | ||||
13 | 1 | 3 | Test2::API::test2_formatter_add($class); | ||||
14 | } | ||||||
15 | |||||||
16 | 0 | 0 | 0 | sub hide_buffered { 1 } | |||
17 | |||||||
18 | 1; | ||||||
19 | |||||||
20 | __END__ |