Branch Coverage

blib/lib/Async/Simple/Pool.pm
Criterion Covered Total %
branch 35 38 92.1


line true false branch
446 0 20 if (scalar @bad_task_param_names)
450 15 5 if (scalar keys %{$self->data;})
476 4 42 if ($new_data)
488 185 32 if grep $_->has_id, @{$self->tasks;}
491 20 197 if $break_on_busy
494 106 91 if scalar @{$self->queue_keys;}
496 2 89 if $break_on_run
499 65 24 if grep $_->has_id, @{$self->tasks;}
525 39 7 $is_list ? :
531 150 85 unless $is_full or $has_result
535 546 45 $is_list ? :
537 60 531 if ($self->flush_data and $has_result)
542 14 32 if $self->flush_data
580 0 185 unless my(@busy_tasks) = grep($_->has_id, @{$self->tasks;})
588 1449 283 unless $task->has_answer
606 142 75 unless my(@free_tasks) = grep((!$_->has_id), @{$self->tasks;})
614 42 303 unless defined $pointer
640 15 4 if (ref $data eq 'ARRAY') { }
4 0 elsif (ref $data eq 'HASH') { }