blib/lib/TAP/Formatter/File.pm

filter: Statementstmt 95.4% 21 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod 100% 1 / 1 totaltotal 93.3% 28 / 30 CC 1 SCAR 1.3
CC
1
Cov
95%
_should_show_count
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« blib/lib/TAP/Parser/SourceHandler.pm ↑ Summary blib/lib/TAP/Parser/ResultFactory.pm »
1 package TAP::Formatter::File;
2  
3 17 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 17 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 17 ▶use TAP::Formatter::File::Session;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 17 ▶use POSIX qw(strftime);
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 17 ▶use base 'TAP::Formatter::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 =head1 NAME
11  
12 TAP::Formatter::File - Harness output delegate for file output
13  
14 =head1 VERSION
15  
16 Version 3.52
17  
18 =cut
19  
20 17 our $VERSION = '3.52';
21  
22 =head1 DESCRIPTION
23  
24 This provides file orientated output formatting for TAP::Harness.
25  
26 =head1 SYNOPSIS
27  
28 use TAP::Formatter::File;
29 my $harness = TAP::Formatter::File->new( \%args );
30  
31 =head2 C<< open_test >>
32  
33 See L<TAP::Formatter::Base>
34  
35 =cut
36  
37 147 ▶sub open_test {
Subroutine open_test: called CC=1 SCAR=0.0
Pod documented
38 147 my ( $self, $test, $parser ) = @_;
39  
40 147 my $session = TAP::Formatter::File::Session->new(
41 { name => $test,
42 formatter => $self,
43 parser => $parser,
44 }
45 );
46  
47 147 $session->header;
48  
49 147 return $session;
50 }
51  
52 0 ▶sub _should_show_count {
Subroutine _should_show_count: not called CC=1 SCAR=6.9
53 0 return 0;
54 }
55  
56 17 1;
« blib/lib/TAP/Parser/SourceHandler.pm ↑ Summary blib/lib/TAP/Parser/ResultFactory.pm »