Condition Coverage

blib/lib/IPC/ShellCmd.pm
Criterion Covered Total %
condition 0 132 0.0


and 3 conditions

line !l l&&!r l&&r condition
75 0 0 0 $cmd && ref $cmd
111 0 0 0 $$opts{'-debug'} and $$opts{'-debug'} =~ /^\d+$/
115 0 0 0 $$opts{'-argv0'} and not ref $$opts{'-argv0'}
139 0 0 0 $$self{'opts'}{'warn'} and defined $$self{'umask'}
171 0 0 0 @_ and not defined $_[0]
177 0 0 0 $$self{'opts'}{'warn'} and defined $$self{'wd'}
181 0 0 0 $$self{'run'} and defined $path
185 0 0 0 defined $path and not ref $path
217 0 0 0 $$self{'opts'}{'warn'} and exists $$self{'env'}{$e}
261 0 0 0 &Scalar::Util::blessed($obj) and $obj->can('chain')
345 0 0 0 $$self{'opts'}{'warn'} and $$self{'stdin'}
353 0 0 0 ref $_[0] and ref $_[0] ne 'CODE'
0 0 0 ref $_[0] and ref $_[0] ne 'CODE' and ref $_[0] ne 'SCALAR'
517 0 0 0 ref $_[0] ne 'CODE' and ref $_[0] ne 'SCALAR'
749 0 0 0 $$self{'stdin'}[0] ne 'file' and vec $wout, fileno $$self{'stdin'}[2], 1
798 0 0 0 not $finished and length $$self{'stdin'}[3] < $IPC::ShellCmd::BufferLength
823 0 0 0 $finished and not length $$self{'stdin'}[3]
832 0 0 0 $$self{$fh}[0] ne 'file' and vec $rout, fileno $$self{$fh}[2], 1
855 0 0 0 not defined $$self{'status'} and waitpid $pid, 1
891 0 0 0 $type ne 'plain' and $type ne 'coderef'
0 0 0 $type ne 'plain' and $type ne 'coderef' and $type ne 'scalarref'
0 0 0 $type ne 'plain' and $type ne 'coderef' and $type ne 'scalarref' and $type ne 'file'
0 0 0 $type eq 'plain' and $fh ne 'stdin'
922 0 0 0 $$self{$fh} and $$self{$fh}[0] eq 'filename'
949 0 0 0 $$file{$fh} and $$el{'opt'}{$fh}
983 0 0 0 $$self{$fh} and $$self{$fh}[0] eq 'filename'
0 0 0 $$self{$fh} and $$self{$fh}[0] eq 'fd'

or 3 conditions

line l !l&&r !l&&!r condition
75 0 0 0 not $cmd && ref $cmd or ref $cmd ne 'ARRAY'
86 0 0 0 not defined $cmd_el or ref $cmd_el
151 0 0 0 ref $umask or not $umask =~ /^\d+$/
386 0 0 0 not defined $_[1] or ref $_[1]
0 0 0 not defined $_[1] or ref $_[1] or $_[1] =~ /\000/
393 0 0 0 not defined $_[1] or ref $_[1]
0 0 0 not defined $_[1] or ref $_[1] or not $_[1] =~ /^\d+$/
517 0 0 0 not ref $_[0] or ref $_[0] ne 'CODE' and ref $_[0] ne 'SCALAR'
551 0 0 0 not defined $_[1] or ref $_[1]
0 0 0 not defined $_[1] or ref $_[1] or $_[1] =~ /\000/
558 0 0 0 not defined $_[1] or ref $_[1]
0 0 0 not defined $_[1] or ref $_[1] or not $_[1] =~ /^\d+$/
746 0 0 0 $rin =~ /[^\0]/ or $win =~ /[^\0]/
862 0 0 0 $rin =~ /[^\0]/ or $win =~ /[^\0]/
0 0 0 $rin =~ /[^\0]/ or $win =~ /[^\0]/ or defined $$self{'status'}
901 0 0 0 $type eq 'plain' or $type eq 'coderef'
0 0 0 $type eq 'plain' or $type eq 'coderef' or $type eq 'scalarref'