| blib/lib/No/Worries/Proc.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 30 | 60 | 50.0 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 49 | 0 | 0 | 54 | -f $cmd[0] and -x _ |
| 53 | 0 | 0 | 0 | length $dir and -d $dir |
| 54 | 0 | 0 | 0 | -f "$dir/$cmd[0]" and -x _ |
| 123 | 44 | 0 | 0 | $$proc{"fh$what"} and $$proc{"cb$what"} |
| 129 | 36 | 0 | 52 | $$proc{"fh$what"} and $$proc{"cb$what"} |
| 134 | 2 | 57 | 0 | $iosr and not grep(($fh eq $_), $iosr->can_read(1)) |
| 582 | 1683 | 0 | 0 | $maxtime and &Time::HiRes::time() > $maxtime |
| 586 | 1653 | 29 | 1 | $option{'deaths'} and grep(defined($_->{'status'}), values %{$process;}) >= $zombies + $option{'deaths'} |
| 590 | 434 | 35 | 1213 | $iosr and $iosr->count |
| 591 | 1674 | 4 | 4 | $iosw and $iosw->count |
| line | l | !l | condition |
|---|---|---|---|
| 51 | 0 | 0 | $ENV{'PATH'} || '/usr/bin:/usr/sbin:/bin:/sbin' |
| 407 | 0 | 7 | $proc->{'kill'} || 'TERM/1 INT/1 QUIT/1' |
| 559 | 0 | 44 | $option{'bufsize'} ||= 8192 |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 161 | 1683 | 0 | 0 | kill 0, $proc->{'pid'} or $! == 1 |
| 203 | 0 | 44 | 0 | $ref eq 'CODE' or $ref eq 'SCALAR' |
| 236 | 0 | 30 | 0 | $ref eq 'CODE' or $ref eq 'SCALAR' |
| 289 | 5 | 1 | 3 | $wrterr or $merge |
| 407 | 0 | 7 | 0 | $option{'kill'} ||= $proc->{'kill'} || 'TERM/1 INT/1 QUIT/1' |
| 570 | 1249 | 0 | 477 | $iosr or $iosw |
| 1249 | 434 | 43 | $iosr or $iosw or grep((!defined($_->{'status'})), values %{$process;}) | |
| 678 | 0 | 0 | 0 | $SigName[$signum] || $signum |