Branch Coverage

blib/lib/AnyEvent/ForkManager.pm
Criterion Covered Total %
branch 23 34 67.6


line true false branch
27 0 14 @_ == 1 ? :
65 28 66 @_ == 1 ? :
67 0 94 if $self->is_child
70 40 54 if ($self->is_working_max) { }
78 0 54 if (not defined $pid) { }
42 12 elsif ($pid) { }
92 0 42 unless exists $self->process_cb->{$pid}
114 28 4 if ($self->num_queues)
123 0 12 unless $self->is_child
140 0 28 unless @{$self->process_queue;}
143 28 0 if (my $arg = shift @{$self->process_queue;})
159 0 10 @_ == 1 ? :
162 5 5 if ($arg->{'blocking'}) { }
167 0 5 if $self->wait_async
175 1 15 if ($self->num_workers == 0 and $self->num_queues == 0)
192 182 0 if ($cb)
203 16 0 if ($pid and exists $self->running_worker->{$pid})