Branch Coverage

blib/lib/Proc/Simple.pm
Criterion Covered Total %
branch 41 56 73.2


line true false branch
240 0 46 unless defined $$self{'pid'}
242 9 37 if ($$self{'pid'} == 0) { }
37 0 elsif ($$self{'pid'} > 0) { }
253 1 8 if (defined $$self{'redirect_stderr'})
259 1 8 if (defined $$self{'redirect_stdout'})
265 3 6 if (ref $func eq 'CODE') { }
312 8425 0 if (defined $$self{'pid'}) { }
313 8357 68 if (CORE::kill 0, $$self{'pid'}) { }
353 25 1 unless defined $sig
356 1 25 unless ($sig =~ /^[-\d]+$/)
362 0 26 unless (defined $$self{'pid'})
368 26 0 if (CORE::kill $sig, $$self{'pid'}) { }
405 1 6 if (@_)
428 0 1 if (@_)
481 0 25 if (@_)
548 1 6 unless $self->pid
552 1 5 if ($self->kill_on_destroy)
554 0 1 if (defined $self->signal_on_destroy) { }
562 2 4 if ($self->poll)
612 0 2 if defined $Proc::Simple::EXIT_STATUS{$pid}
637 8461 0 if (defined $WNOHANG) { }
657 2 0 if (my $res = waitpid($pid, $WNOHANG) > 0)
666 1244 9510 if (defined $Proc::Simple::EXIT_STATUS{$pid})
670 33 9477 if (my $res = waitpid($pid, $WNOHANG) > 0) { }
720 20 0 unless (exists $Proc::Simple::DESTROYED{$pid})
733 0 38449 if ($Debug)
754 0 19 unless open STDERR, '>/dev/null'
767 0 19 if $@