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
263 10 39 0 defined $self->{'code'} and defined $self->{'func'}
265 39 10 0 defined $self->{'func'} and not defined $self->{'module'}
269 0 49 0 $need_restart and $self->loop
468 44 0 44 defined $params{'on_return'} and defined $params{'on_error'}
662 2 0 17 $self->{'idle_timer'} and not $self->{'idle_timer'}->is_running
738 0 110 0 exists $params{$_} and $self->{$_} = delete $params{$_}
782 78 0 6 $worker->{'exit_on_die'} and $type eq "e"
809 0 78 10 $function and $worker->{'remove_on_idle'}

or 2 conditions

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

or 3 conditions

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