Branch Coverage

blib/lib/Paranoid/Process.pm
Criterion Covered Total %
branch 38 88 43.1


line true false branch
103 0 0 if scalar @{$signals{$sig};}
122 0 0 if defined $SIG{$_} and $SIG{$_} eq \&Paranoid::Process::_sigHandler
141 0 0 if (exists $signals{$signal}) { }
142 0 0 if (grep {$_ eq $sref;} @{$signals{$signal};}) { }
170 0 0 if (exists $signals{$signal}) { }
171 0 0 if (grep {$_ eq $sref;} @{$signals{$signal};}) { }
174 0 0 if ($sigh eq $sref)
261 128 140 if ($pid > 0 and _grepPID($pid))
268 10 118 if defined $sref
288 0 0 if $pid
290 0 0 if (defined $pid) { }
293 0 0 if $rv = open(STDIN, "/dev/null")
296 0 0 unless ($rv)
299 0 0 unless $rv
328 77 180 if ($max)
334 257 0 if (defined $rv)
335 221 36 if ($rv > 0) { }
361 2 0 if (pipe $fc, $tp and pipe $fp, $tc) { }
369 2 0 if (defined $rv) { }
370 1 1 if ($rv) { }
409 37 0 if (defined $user and length $user)
414 19 449 if @pwentry and $user eq $pwentry[0]
417 19 18 if defined $uuid
436 38 0 if (defined $group and length $group)
441 19 938 if @pwentry and $group eq $pwentry[0]
444 19 19 if defined $ugid
467 0 1 unless defined $user or defined $group
471 1 0 if (defined $group)
474 1 0 unless ($group =~ /^\d+$/s)
476 0 1 unless (defined $dgid)
484 1 0 if ($rv)
486 0 1 unless (setgid($dgid))
496 0 1 if ($rv and defined $user)
499 0 0 unless ($user =~ /^\d+$/s)
501 0 0 unless (defined $duid)
509 0 0 if ($rv)
511 0 0 unless (setuid($duid))
541 4 0 if (defined $cmd)
547 4 0 if (defined $SIG{'CHLD'})
561 4 0 if defined $SIG{'CHLD'}
564 1 3 if ($$cref == -1 or $$cref == 32512) { }
0 3 elsif ($signal) { }
576 0 0 if $cored
583 1 2 $$cref == 0 ? :