Condition Coverage

blib/lib/Future/Utils.pm
Criterion Covered Total %
condition 37 55 67.2


and 2 conditions

line l !l condition
555 33 15 defined $_ and return $return

and 3 conditions

line !l l&&!r l&&r condition
332 10 16 2 not $is_try and $trial->failure
458 2 0 0 defined $args{'until'} and croak("Cannot pass 'while' or 'until' to try_repeat_until_success")

or 2 conditions

line l !l condition
616 9 6 $args{'concurrent'} || 1

or 3 conditions

line l !l&&r !l&&!r condition
304 11 53 0 $$trialp ||= "Future"->call($code, $prev)
309 8 5 0 $return ||= $trial->new
319 0 1 0 $return ||= $trial->new
326 4 18 0 $return ||= $trial->new
350 15 7 3 defined($args{'while'}) + defined($args{'until'}) == 1 or defined $args{'foreach'}
22 3 0 defined($args{'while'}) + defined($args{'until'}) == 1 or defined $args{'foreach'} or defined $args{'generate'}
383 3 1 0 $last_trial_f || 'Future'->done
394 1 0 1 &$orig_until($_[0]) || $done
558 10 1 0 $return ||= "Future"->new
581 23 13 0 $return ||= $f->new
601 1 0 0 $return ||= $f->new
640 0 2 2 not defined $_ or $_->is_ready
2 2 0 not defined $_ or $_->is_ready or $_->cancel
643 1 0 3 not defined $_ or $_->is_ready
1 3 0 not defined $_ or $_->is_ready or $_->cancel