Condition Coverage

blib/lib/IO/Async/Function.pm
Criterion Covered Total %
condition 20 32 62.5


and 3 conditions

line !l l&&!r l&&r condition
261 10 39 0 defined $self->{'code'} and defined $self->{'func'}
263 39 10 0 defined $self->{'func'} and not defined $self->{'module'}
267 0 49 0 $need_restart and $self->loop
466 44 0 44 defined $params{'on_return'} and defined $params{'on_error'}
660 2 0 17 $self->{'idle_timer'} and not $self->{'idle_timer'}->is_running
736 0 110 0 exists $params{$_} and $self->{$_} = delete $params{$_}
780 78 0 6 $worker->{'exit_on_die'} and $type eq 'e'
807 0 78 10 $function and $worker->{'remove_on_idle'}

or 2 conditions

line l !l condition
504 9 14 $params{'priority'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
510 9 0 0 $idx // $#$queue + 1
780 1 48 36 not $worker->{'max_calls'} or $worker->{'exit_on_die'} and $type eq 'e'