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 152 if $self->{'total_workers'} >= $self->{'max_workers'}
54 112 40 if ($workers_to_create <= 0)
56 3 109 unless keys %{$$self{'available_workers'};} or keys %{$$self{'connecting_workers'};}
71 24 27 unless ($fh)
89 2 0 if $checkout
109 9 15 if exists $self->{'populate_workers_timer'}
120 35 357 unless @{$self->{'pending_checkouts'};}
122 124 233 if (keys %{$$self{'available_workers'};})
155 8 133 if (exists $self->{'max_checkouts'})
156 2 6 if ($self->{'worker_checkout_counts'}{0 + $worker} >= $self->{'max_checkouts'})