Branch Coverage

lib/IPC/Capture.pm
Criterion Covered Total %
branch 17 66 25.7


line true false branch
214 0 3 unless ($way)
219 0 3 if $DEBUG
220 0 3 if $self->debugging
246 0 3 if $DEBUG
261 3 0 if (defined $retval)
344 3 0 if ($capture_stdout eq $expected_stdout and $capture_stderr eq $expected_stderr and $capture_all eq $expected_all) { }
385 0 0 if ($capture_stdout eq $expected_stdout and $capture_stderr eq $expected_stderr and $capture_all eq $expected_all) { }
428 0 0 if ($found = $self->can_run_qx_which($program)) { }
0 0 elsif ($found = $self->can_run_qx_path_glob($program)) { }
458 0 0 if ($@) { }
0 0 elsif (defined $found and $found =~ / \b $program $ /msx) { }
491 0 0 if ($name eq $program and -f "$loc/$name" and -x "$loc/$name")
569 0 5 if $self->autochomp
584 0 5 if $self->autochomp
599 0 5 if $self->autochomp
617 0 0 if $DEBUG
633 0 0 if $self->autochomp
664 0 2 unless open $fh, '<', $filename
671 2 0 unless $DEBUG
674 0 2 if $self->autochomp
711 0 0 unless ($success)
714 0 0 if $self->autochomp
736 0 0 unless ($success)
739 0 0 if $self->autochomp
757 0 0 if (IPC::Cmd::run('command', $cmd, 'verbose', 0, 'buffer', \$all_buf)) { }
762 0 0 if $self->autochomp
783 0 0 unless ($success)
787 0 0 if $self->autochomp
808 0 0 unless (ref $aref eq 'ARRAY')
840 0 7 if $AUTOLOAD =~ /DESTROY$/
846 0 7 unless defined $ATTRIBUTES{$field}
853 1 6 if ($name =~ /^set_/) { }
0 6 elsif ($name =~ /^get_/) { }