Condition Coverage

lib/Shell/Cmd.pm
Criterion Covered Total %
condition 103 135 76.3


and 3 conditions

line !l l&&!r l&&r condition
340 473 10 1 ref $cmd ne '' and ref $cmd ne 'ARRAY'
348 376 1 106 @args and ref $args[0] eq 'HASH'
568 2 1 5 $self->{'g'}{'out'} and $self->{'g'}{'err'}
768 5 17 2 $self->{'g'}{'s_type'} eq 'run' and $self->{'g'}{'failure'} eq 'display'
778 8 33 2 $self->{'g'}{'s_type'} eq 'run' and $self->{'g'}{'failure'} eq 'display'
956 422 2 18 $self->{'c'}{'c_retries'} and not $self->{'c'}{'simp'}
1389 13 37 114 @out and not $out[0] =~ /^\#SC CMD (\d+)\.(\d+)$/
1477 8 8 21 $alt_next <= 1 and $try_next == 0
1817 12 0 74 exists $output->{'out'} and defined $output->{'out'}[$i]
0 0 12 exists $output->{'err'} and defined $output->{'err'}[$i]
1835 12 0 56 exists $output->{'out'} and defined $output->{'out'}[$i]
0 0 12 exists $output->{'err'} and defined $output->{'err'}[$i]
1851 0 0 0 exists $output->{'out'} and defined $output->{'out'}[$i]
0 0 0 exists $output->{'err'} and defined $output->{'err'}[$i]
1877 4 0 27 exists $output->{'out'} and defined $output->{'out'}[$i]
1891 8 0 13 exists $output->{'err'} and defined $output->{'err'}[$i]
1905 4 0 27 exists $output->{'out'} and defined $output->{'out'}[$i]
0 0 4 exists $output->{'err'} and defined $output->{'err'}[$i]
1914 5 0 32 exists $output->{'out'} and defined $output->{'out'}[$i]
0 0 5 exists $output->{'err'} and defined $output->{'err'}[$i]
1923 4 0 19 exists $output->{'out'} and defined $output->{'out'}[$i]
0 0 4 exists $output->{'err'} and defined $output->{'err'}[$i]
1932 4 0 28 exists $output->{'out'} and defined $output->{'out'}[$i]
0 0 4 exists $output->{'err'} and defined $output->{'err'}[$i]

or 3 conditions

line l !l&&r !l&&!r condition
84 85 1 3 $all or $opts{'opts'}
162 85 1 3 $all or $opts{'commands'}
209 85 1 3 $all or $opts{'env'}
211 85 1 3 $all or $opts{'out'}
260 1 1 161 $opt eq 'ssh_num' or $opt eq 'ssh_sleep'
79 79 3 $opt eq 'tmp_script' or $opt eq 'tmp_script_keep'
158 1 2 $opt eq 'tmp_script' or $opt eq 'tmp_script_keep' or $opt eq 'ssh_script'
80 1 1 $opt eq 'tmp_script' or $opt eq 'tmp_script_keep' or $opt eq 'ssh_script' or $opt eq 'ssh_script_keep'
405 7 4 460 $cmd =~ /^\s*(if)\s+.*?;\s*then\s*$/ or $cmd =~ /^\s*(elif)\s+.*?;\s*then\s*$/
11 3 457 $cmd =~ /^\s*(if)\s+.*?;\s*then\s*$/ or $cmd =~ /^\s*(elif)\s+.*?;\s*then\s*$/ or $cmd =~ /^\s*(else)\s*$/
7 3 454 $cmd =~ /^\s*(if)\s+.*?;\s*then\s*$/ or $cmd =~ /^\s*(elif)\s+.*?;\s*then\s*$/ or $cmd =~ /^\s*(else)\s*$/ or $cmd =~ /^\s*(fi)\s*$/
4 2 448 $cmd =~ /^\s*(while)\s+.*?;\s*do\s*$/ or $cmd =~ /^\s*(until)\s+.*?;\s*do\s*$/
6 7 441 $cmd =~ /^\s*(while)\s+.*?;\s*do\s*$/ or $cmd =~ /^\s*(until)\s+.*?;\s*do\s*$/ or $cmd =~ /^\s*(for)\s+.*?;\s*do\s*$/
9 11 430 $cmd =~ /^\s*(while)\s+.*?;\s*do\s*$/ or $cmd =~ /^\s*(until)\s+.*?;\s*do\s*$/ or $cmd =~ /^\s*(for)\s+.*?;\s*do\s*$/ or $cmd =~ /^\s*(done)\s*$/
429 4 2 18 $flow eq 'while' or $flow eq 'until'
6 7 11 $flow eq 'while' or $flow eq 'until' or $flow eq 'for'
821 54 13 2 $self->{'g'}{'s_type'} eq 'run' or $self->{'g'}{'s_type'} eq 'script'
1138 18 438 16 $self->{'cmd'}{$cmd_num}{'noredir'} || $simple || !$self->{'g'}{'redir'}
1403 4 40 6 not defined $output[$#output] or $output[$#output] eq ''
1675 0 0 0 $self->{'g'}{'ssh_script'} || $script_loc
1758 0 0 0 $host eq 'all' or $host =~ /,/