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 | 57 | 57 | 650 | use strict; | |||
57 | 63 | ||||||
57 | 1491 | ||||||
3 | 57 | 57 | 158 | use warnings; | |||
57 | 64 | ||||||
57 | 5079 | ||||||
4 | |||||||
5 | our $VERSION = '0.000044'; | ||||||
6 | |||||||
7 | my %ADDED; | ||||||
8 | sub import { | ||||||
9 | 1 | 1 | 8 | my $class = shift; | |||
10 | 1 | 50 | 2 | return if $class eq __PACKAGE__; | |||
11 | 1 | 50 | 3 | return if $ADDED{$class}++; | |||
12 | 1 | 394 | require Test2::API; | ||||
13 | 1 | 4 | Test2::API::test2_formatter_add($class); | ||||
14 | } | ||||||
15 | |||||||
16 | 0 | 0 | 0 | sub hide_buffered { 1 } | |||
17 | |||||||
18 | 1; | ||||||
19 | |||||||
20 | __END__ |