File Coverage

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   1211 use strict;
  2         5  
  2         85  
2 2     2   11 use warnings;
  2         4  
  2         94  
3              
4             package Test::Pretty::Harness;
5 2     2   11 use parent qw/TAP::Harness/;
  2         3  
  2         11  
6              
7             # inject parser_class as Test::Pretty::Parser.
8             sub new {
9 2     2 1 1536 my $class = shift;
10 2         5 my $arg_for = shift;
11 2         4 $arg_for->{parser_class} = 'Test::Pretty::Parser';
12 2         5 $arg_for->{switches} = ['-MTest::Pretty'];
13 2         22 my $self = $class->SUPER::new($arg_for);
14 2         371 return $self;
15             }
16              
17             1;