Condition Coverage

lib/BATsh/CMD.pm
Criterion Covered Total %
condition 14 71 19.7


and 3 conditions

line !l l&&!r l&&r condition
33 5 0 0 $] < "5.006" and not defined &warnings::import
100 0 33 0 defined $rc and $rc eq "__EXIT__"
166 0 0 51 defined $cmd and $cmd ne ""
264 0 0 0 defined $opts_ref->{'_pushd_stack'} and @{$opts_ref->{'_pushd_stack'};}
359 0 0 0 defined $v && $v =~ /^\d+$/
453 0 2 0 defined $first_content and $first_content =~ /\S/
463 0 3 1 $depth == 1 and $ls =~ /\A\)\s*ELSE\s*\(\s*\z/i
470 0 3 0 $depth == 1 and $ls =~ /\A\)\s*ELSE\s+(.+)\z/i
501 0 0 5 defined $body and $body =~ /\S/
518 0 5 0 defined $rc and $rc eq "__EXIT__"
616 0 2 9 $step > 0 and $i <= $end
2 0 0 $step < 0 and $i >= $end
756 0 0 0 defined $src and defined $dst
797 0 0 0 defined $src and defined $dst
858 0 0 0 defined $src and defined $dst

or 2 conditions

line l !l condition
900 0 0 $rc >> 8 || 1

or 3 conditions

line l !l&&r !l&&!r condition
204 0 0 0 $CMD eq "CD" or $CMD eq "CHDIR"
213 0 0 0 $CMD eq "DEL" or $CMD eq "ERASE"
219 0 0 0 $CMD eq "MKDIR" or $CMD eq "MD"
222 0 0 0 $CMD eq "RMDIR" or $CMD eq "RD"
225 0 0 0 $CMD eq "REN" or $CMD eq "RENAME"
616 9 0 2 $step > 0 and $i <= $end or $step < 0 and $i >= $end
689 0 0 0 $rest eq "" or $rest eq "/D"
729 0 0 0 $e eq "." or $e eq ".."