Branch Coverage

blib/lib/App/NDTools/Test.pm
Criterion Covered Total %
branch 28 38 73.6


line true false branch
31 0 246 if (exists $t{'skip'} and $t{'skip'}->())
36 0 246 exists $t{'env'} ? :
38 0 246 if @envs
39 0 246 if (@envs)
44 0 246 if (exists $t{'pre'} and not $t{'pre'}->())
50 243 3 if (eval { do { $t{'cmd'}[0]->isa('App::NDTools::NDTool') } }) { }
58 243 0 if (&blessed($@) and $@->isa('Log::Log4Cli::Exception')) { }
75 0 492 if exists $t{$std} and not defined $t{$std}
76 325 167 unless exists $t{$std}
79 246 246 $std eq 'stdout' ? :
81 112 380 if (ref $t{$std} eq 'CODE') { }
52 328 elsif (ref $t{$std} eq 'Regexp') { }
90 246 0 if (not exists $t{'exit'} or defined $t{'exit'})
91 132 114 unless exists $t{'exit'}
98 88 158 if exists $t{'test'}
100 0 246 if (exists $t{'post'} and not $t{'post'}->())
105 246 0 if (not exists $t{'clean'} or defined $t{'clean'})
106 239 7 unless exists $t{'clean'}
107 119 134 if -f $_