Branch Coverage

blib/lib/AnyEvent/Task/Client.pm
Criterion Covered Total %
branch 29 32 90.6


line true false branch
23 0 15 defined $arg{'min_workers'} ? :
24 7 8 defined $arg{'max_workers'} ? :
25 6 9 if $self->{'min_workers'} > $self->{'max_workers'}
26 0 15 if exists $arg{'timeout'}
27 1 14 if exists $arg{'max_checkouts'}
28 1 14 if $arg{'dont_refork_after_error'}
51 119 150 if $self->{'total_workers'} >= $self->{'max_workers'}
54 112 38 if ($workers_to_create <= 0)
56 3 109 unless keys %{$$self{'available_workers'};} or keys %{$$self{'connecting_workers'};}
71 24 27 unless ($fh)
86 2 0 if $checkout
106 9 15 if exists $self->{'populate_workers_timer'}
117 35 357 unless @{$self->{'pending_checkouts'};}
119 124 233 if (keys %{$$self{'available_workers'};})
152 8 133 if (exists $self->{'max_checkouts'})
153 2 6 if ($self->{'worker_checkout_counts'}{0 + $worker} >= $self->{'max_checkouts'})