blib/lib/App/TestOnTap.pm

filter: Statementstmt 100% 34 / 34 Branchbran 83.3% 5 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 0.0% 0 / 1 totaltotal 95.8% 46 / 48 SCAR 13.9
CC
4
Cov
98%
main
4.0
BEGIN
1.0
BEGIN
1.0
CRAP 4.0
« blib/lib/App/TestOnTap/Scheduler.pm ↑ Summary
1 package App::TestOnTap;
2  
3 19 ▶use 5.010_001;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 19 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 19 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 19 our $VERSION = '0.059';
9 19 my $version = $VERSION;
10 19 $VERSION = eval $VERSION;
11  
12 19 ▶use App::TestOnTap::Args;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 19 ▶use App::TestOnTap::Harness;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 19 ▶use App::TestOnTap::Util qw($IS_PACKED);
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 # These are (known) implicit dependencies, and listing them like this
17 # allows scanners like perlapp to pick up on them
18 #
19 19 require TAP::Parser if 0;
20 19 require TAP::Parser::Aggregator if 0;
21 19 require TAP::Parser::Multiplexer if 0;
22 19 require TAP::Formatter::Console::ParallelSession if 0;
23  
24 # main entry point
25 #
26 sub main
27 {
28 # as a very special workaround - when running as a packed binary, any PERL5LIB envvar
29 # is cleared, but if it's really needed, any TESTONTAP_PERL5LIB will be used to reinsert
30 # it here for our children
31 #
32 29 ▶ $ENV{PERL5LIB} = $ENV{TESTONTAP_PERL5LIB} if $ENV{TESTONTAP_PERL5LIB};
Subroutine main: called CC=4 SCAR=13.9
Pod undocumented
Branch: 1 branch
BranchTrueFalseTotal
if $ENV{"TESTONTAP_PERL5LIB"} 0 29 29
33  
34 # parse raw argv and prepare
35 #
36 29 my $args = App::TestOnTap::Args->new($version, @_);
37  
38 # run all tests
39 #
40 27 my $failed = App::TestOnTap::Harness->new($args)->runtests();
41
42 # in case results have been requested...
43 #
44 26 my $saveDir = $args->getSaveDir();
45 26 ▶ if ($saveDir)
Branch: 1 branch
BranchTrueFalseTotal
if ($saveDir) 2 24 26
46 {
47 2 my $savePath = $args->getWorkDirManager()->saveResult($saveDir, $args->getArchive());
48 2 print "Result saved to '$savePath'\n";
49 }
50
51 26 ▶ warn("At least $failed test(s) failed!\n") if $failed;
Branch: 1 branch
BranchTrueFalseTotal
if $failed 2 24 26
52  
53 26 return $failed;
54 }
55  
56 19 1;
« blib/lib/App/TestOnTap/Scheduler.pm ↑ Summary