Branch Coverage

blib/lib/IPC/Run/Win32Helper.pm
Criterion Covered Total %
branch 0 126 0.0


line true false branch
57 0 0 unless defined $_
59 0 0 if ref $fd
60 0 0 if &_debugging_details()
62 0 0 if not defined $osfh or $osfh == INVALID_HANDLE_VALUE()
70 0 0 unless defined $_
72 0 0 if ref $fd
73 0 0 if &_debugging_details()
75 0 0 if not defined $osfh or $osfh == INVALID_HANDLE_VALUE()
192 0 0 unless $saw_pipe
195 0 0 if &_debugging_details() and $ok_to_optimize_outputs
197 0 0 if &_debugging_details() and $veto_output_optimization
200 0 0 if ($h->{'noinherit'} and not $ok_to_optimize_outputs)
201 0 0 if &_debugging_details() and $ok_to_optimize_outputs
207 0 0 if (substr($_->{'TYPE'}, 0, 1) eq '<') { }
0 0 elsif ($_->{'TYPE'} eq 'close' and $_->{'KFD'} == 0) { }
0 0 elsif ($_->{'TYPE'} eq 'dup' and $_->{'KFD2'} == 0) { }
0 0 elsif ($_->{'TYPE'} eq '|') { }
208 0 0 if ($_->{'TYPE'} eq "<")
209 0 0 if (@{$_->{'FILTERS'};} > 1) { }
0 0 elsif (ref $_->{'SOURCE'} eq 'SCALAR' or ref $_->{'SOURCE'} eq 'GLOB' or UNIVERSAL::isa($_, 'IO::Handle')) { }
0 0 elsif (not ref $_->{'SOURCE'} and defined $_->{'SOURCE'}) { }
215 0 0 if ($_->{'KFD'} == 0)
219 0 0 if &_debugging_details()
227 0 0 if ($_->{'KFD'} == 0)
228 0 0 if &_debugging_details()
246 0 0 ref $_->{'SOURCE'} ? :
0 0 defined $_->{'FILENAME'} ? :
0 0 defined $_->{'SOURCE'} ? :
0 0 @{$_->{'FILTERS'};} > 1 ? :
0 0 if &_debugging_details() or &_debugging_not_optimized()
253 0 0 if &_debugging_details()
258 0 0 if &_debugging_details() or &_debugging_not_optimized()
266 0 0 unless ($ok_to_optimize_outputs or $veto_output_optimization)
267 0 0 if &_debugging_details() or &_debugging_not_optimized()
272 0 0 if ($ok_to_optimize_outputs and $veto_output_optimization)
274 0 0 if &_debugging_details() or &_debugging_not_optimized()
284 0 0 if ($_->{'TYPE'} eq ">")
285 0 0 if (ref $_->{'DEST'} eq "SCALAR" or @{$_->{'FILTERS'};} > 1 || ref $_->{'DEST'} eq 'CODE' || ref $_->{'DEST'} eq 'ARRAY' and ($ok_to_optimize_outputs and not $veto_output_optimization))
309 0 0 ref $_->{'DEST'} ? :
0 0 defined $_->{'FILENAME'} ? :
0 0 defined $_->{'DEST'} ? :
0 0 @{$_->{'FILTERS'};} ? :
0 0 if &_debugging_details()
378 0 0 if exists $saved->{$fd}
393 0 0 if (exists $saved_as->{$fd2})
403 0 0 if &_debugging_details()
412 0 0 if (UNIVERSAL::isa($cmd, 'IPC::Run::Win32Process')) { }
0 0 elsif (not $cmd->[0] =~ /\.(bat|cmd) *$/i) { }
438 0 0 if ($cmd->[0] =~ /["\r\n\0]/)
451 0 0 if (@$cmd > 1)
462 0 0 if ($cmd_line =~ s/%/%ipcrunpct%/g) { }
470 0 0 if &_debugging()
472 0 0 if &_debugging()
486 0 0 if defined $op->{'FD'}
488 0 0 if (defined $op->{'KFD'} and $op->{'KFD'} > 2)
497 0 0 if (defined $op->{'TFD'}) { }
0 0 elsif ($op->{'TYPE'} eq 'dup') { }
0 0 elsif ($op->{'TYPE'} eq 'close') { }
0 0 elsif ($op->{'TYPE'} eq 'init') { }
498 0 0 unless ($op->{'TFD'} == $op->{'KFD'})
505 0 0 unless $op->{'KFD1'} == $op->{'KFD2'}
517 0 0 if $need_pct
527 0 0 unless (Win32::Process::Create($process, $app, $cmd_line, 1, 0, "."))