Branch Coverage

blib/lib/Proc/Terminator.pm
Criterion Covered Total %
branch 28 50 56.0


line true false branch
36 2 13 if (kill(0, $self->pid) == 0)
38 0 2 if $DEBUG
39 0 2 if ($errno_save != 3)
48 7 6 unless ($do_kill)
49 0 7 if $DEBUG
54 1 5 unless (defined $sig)
55 0 1 if $DEBUG
58 0 5 if $DEBUG
60 5 0 if (kill($sig, $self->pid) == 1)
64 0 0 if ($! == 3) { }
96 0 3 ref $pids ? :
123 6 9 if ($do_send_kill)
125 0 6 if $DEBUG
130 3 12 if ($ret)
132 1 2 if ($ret == -1)
146 0 15 unless (scalar @ctxs)
147 0 0 if $DEBUG
148 0 0 if (@{$self->badprocs;})
156 0 15 if ($self->max_wait and $now - $self->begin_time > $self->max_wait)
160 0 0 if (kill(0, $pid) == 0 and $! == 3) { }
166 0 0 if (@{$self->badprocs;})
172 12 3 if (keys %{$self->procs;}) { }
175 1 2 if (@{$self->badprocs;})
211 0 12 if $DEBUG
217 0 3 if (wantarray) { }