Condition Coverage

blib/lib/Shell/Cmd.pm
Criterion Covered Total %
condition 89 149 59.7


and 3 conditions

line !l l&&!r l&&r condition
337 174 7 1 ref $cmd ne '' and ref $cmd ne 'ARRAY'
345 2 0 179 @args and ref $args[0] eq 'HASH'
559 0 0 4 $self->{'g'}{'out'} and $self->{'g'}{'err'}
762 5 16 2 $self->{'g'}{'s_type'} eq 'run' and $self->{'g'}{'failure'} eq 'display'
772 4 27 2 $self->{'g'}{'s_type'} eq 'run' and $self->{'g'}{'failure'} eq 'display'
945 144 2 16 $self->{'c'}{'c_retries'} and not $self->{'c'}{'simp'}
1388 8 20 66 @out and not $out[0] =~ /^\#SC CMD (\d+)\.(\d+)$/
1472 4 4 12 $alt_next <= 1 and $try_next == 0
1491 0 4 4 $cmd_next == $cmd_curr and $alt_next == $alt_curr + 1
4 0 4 $cmd_next == $cmd_curr and $alt_next == $alt_curr + 1 and $try_next == $try_curr
1506 0 0 4 $cmd_next == $cmd_curr and $alt_next <= 1
0 0 4 $cmd_next == $cmd_curr and $alt_next <= 1 and $try_next == $try_curr + 1
1788 0 0 30 exists $output->{'out'} and defined $output->{'out'}[$i]
0 0 0 exists $output->{'err'} and defined $output->{'err'}[$i]
1806 0 0 12 exists $output->{'out'} and defined $output->{'out'}[$i]
0 0 0 exists $output->{'err'} and defined $output->{'err'}[$i]
1822 0 0 0 exists $output->{'out'} and defined $output->{'out'}[$i]
0 0 0 exists $output->{'err'} and defined $output->{'err'}[$i]
1848 0 0 14 exists $output->{'out'} and defined $output->{'out'}[$i]
1862 0 0 4 exists $output->{'err'} and defined $output->{'err'}[$i]
1876 0 0 14 exists $output->{'out'} and defined $output->{'out'}[$i]
0 0 0 exists $output->{'err'} and defined $output->{'err'}[$i]
1885 0 0 15 exists $output->{'out'} and defined $output->{'out'}[$i]
0 0 0 exists $output->{'err'} and defined $output->{'err'}[$i]
1894 0 0 7 exists $output->{'out'} and defined $output->{'out'}[$i]
0 0 0 exists $output->{'err'} and defined $output->{'err'}[$i]
1903 0 0 14 exists $output->{'out'} and defined $output->{'out'}[$i]
0 0 0 exists $output->{'err'} and defined $output->{'err'}[$i]

or 2 conditions

line l !l condition
761 24 0 $self->{'g'}{'script'} || 'run'

or 3 conditions

line l !l&&r !l&&!r condition
81 65 1 2 $all or $opts{'opts'}
159 65 1 2 $all or $opts{'commands'}
206 65 1 2 $all or $opts{'env'}
208 65 0 3 $all or $opts{'out'}
257 1 1 121 $opt eq 'ssh_num' or $opt eq 'ssh_sleep'
59 59 3 $opt eq 'tmp_script' or $opt eq 'tmp_script_keep'
118 1 2 $opt eq 'tmp_script' or $opt eq 'tmp_script_keep' or $opt eq 'ssh_script'
60 1 1 $opt eq 'tmp_script' or $opt eq 'tmp_script_keep' or $opt eq 'ssh_script' or $opt eq 'ssh_script_keep'
402 2 0 170 $cmd =~ /^\s*(if)\s+.*?;\s*then\s*$/ or $cmd =~ /^\s*(elif)\s+.*?;\s*then\s*$/
2 2 168 $cmd =~ /^\s*(if)\s+.*?;\s*then\s*$/ or $cmd =~ /^\s*(elif)\s+.*?;\s*then\s*$/ or $cmd =~ /^\s*(else)\s*$/
2 2 166 $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*$/
0 4 162 $cmd =~ /^\s*(while)\s+.*?;\s*do\s*$/ or $cmd =~ /^\s*(until)\s+.*?;\s*do\s*$/
4 7 155 $cmd =~ /^\s*(while)\s+.*?;\s*do\s*$/ or $cmd =~ /^\s*(until)\s+.*?;\s*do\s*$/ or $cmd =~ /^\s*(for)\s+.*?;\s*do\s*$/
11 11 144 $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*$/
426 0 4 18 $flow eq 'while' or $flow eq 'until'
4 7 11 $flow eq 'while' or $flow eq 'until' or $flow eq 'for'
815 47 9 1 $self->{'g'}{'s_type'} eq 'run' or $self->{'g'}{'s_type'} eq 'script'
1125 16 166 8 $self->{'cmd'}{$cmd_num}{'noredir'} || $simple || !$self->{'g'}{'redir'}
1402 1 24 3 not defined $output[$#output] or $output[$#output] eq ''
1646 0 0 0 $self->{'g'}{'ssh_script'} || $script_loc
1729 0 0 0 $host eq 'all' or $host =~ /,/