blib/lib/Test/Pretty/Harness.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 15 | 15 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 4 | 4 | 100.0 |
pod | 1 | 1 | 100.0 |
total | 20 | 20 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | 2 | 2 | 3278 | use strict; | |||
2 | 4 | ||||||
2 | 78 | ||||||
2 | 2 | 2 | 12 | use warnings; | |||
2 | 3 | ||||||
2 | 88 | ||||||
3 | |||||||
4 | package Test::Pretty::Harness; | ||||||
5 | 2 | 2 | 12 | use parent qw/TAP::Harness/; | |||
2 | 4 | ||||||
2 | 12 | ||||||
6 | |||||||
7 | # inject parser_class as Test::Pretty::Parser. | ||||||
8 | sub new { | ||||||
9 | 2 | 2 | 1 | 1513 | my $class = shift; | ||
10 | 2 | 4 | my $arg_for = shift; | ||||
11 | 2 | 5 | $arg_for->{parser_class} = 'Test::Pretty::Parser'; | ||||
12 | 2 | 6 | $arg_for->{switches} = ['-MTest::Pretty']; | ||||
13 | 2 | 16 | my $self = $class->SUPER::new($arg_for); | ||||
14 | 2 | 332 | return $self; | ||||
15 | } | ||||||
16 | |||||||
17 | 1; |