Branch Coverage

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


line true false branch
31 0 215 if (exists $t{'skip'} and $t{'skip'}->())
36 0 215 exists $t{'env'} ? :
38 0 215 if @envs
39 0 215 if (@envs)
44 0 215 if (exists $t{'pre'} and not $t{'pre'}->())
50 212 3 if (eval { do { $t{'cmd'}[0]->isa('App::NDTools::NDTool') } }) { }
58 212 0 if (&blessed($@) and $@->isa('Log::Log4Cli::Exception')) { }
75 0 430 if exists $t{$std} and not defined $t{$std}
76 277 153 unless exists $t{$std}
79 215 215 $std eq 'stdout' ? :
81 110 320 if (ref $t{$std} eq 'CODE') { }
40 280 elsif (ref $t{$std} eq 'Regexp') { }
90 215 0 if (not exists $t{'exit'} or defined $t{'exit'})
91 116 99 unless exists $t{'exit'}
98 72 143 if exists $t{'test'}
100 0 215 if (exists $t{'post'} and not $t{'post'}->())
105 215 0 if (not exists $t{'clean'} or defined $t{'clean'})
106 208 7 unless exists $t{'clean'}
107 92 130 if -f $_