Branch Coverage

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


line true false branch
24 0 197 if (exists $t{'skip'} and $t{'skip'}->())
29 0 197 exists $t{'env'} ? :
31 0 197 if @envs
32 0 197 if (@envs)
37 0 197 if (exists $t{'pre'} and not $t{'pre'}->())
43 185 12 if (eval { do { $t{'cmd'}[0]->isa('App::NDTools::NDTool') } }) { }
51 185 0 if (&blessed($@) and $@->isa('Log::Log4Cli::Exception')) { }
68 0 394 if exists $t{$std} and not defined $t{$std}
69 259 135 unless exists $t{$std}
72 197 197 $std eq 'stdout' ? :
74 98 296 if (ref $t{$std} eq 'CODE') { }
34 262 elsif (ref $t{$std} eq 'Regexp') { }
83 197 0 if (not exists $t{'exit'} or defined $t{'exit'})
84 115 82 unless exists $t{'exit'}
91 69 128 if exists $t{'test'}
93 0 197 if (exists $t{'post'} and not $t{'post'}->())
98 197 0 if (not exists $t{'clean'} or defined $t{'clean'})
99 190 7 unless exists $t{'clean'}
100 87 117 if -f $_