Branch Coverage

blib/lib/Future/Utils.pm
Criterion Covered Total %
branch 54 58 93.1


line true false branch
307 13 51 unless ($trial->is_ready)
311 1 11 if $$trialp->is_cancelled
318 1 50 unless (eval { do { $stop = !&$cond($trial) ^ $sense; 1 } })
324 22 28 if ($stop)
332 2 26 if (not $is_try and $trial->failure)
350 0 10 unless defined($args{'while'}) + defined($args{'until'}) == 1 or defined $args{'foreach'} or defined $args{'generate'}
352 11 14 if ($args{'foreach'})
353 0 11 if $args{'generate'}
357 17 7 @$array ? :
361 14 11 if ($args{'generate'})
374 23 10 if ($again)
379 6 4 if ($otherwise) { }
387 3 11 if (my $orig_while = delete $args{'while'}) { }
1 10 elsif (my $orig_until = delete $args{'until'}) { }
389 3 3 if &$orig_while($_[0])
405 23 2 if $args{'while'}
406 2 23 if $args{'until'}
458 2 0 unless defined $args{'while'}
549 69 30 unless ($slots->[$idx])
552 26 43 unless (($item) = &$generator())
566 10 33 if ($collect eq 'array') { }
3 30 elsif ($collect eq 'scalar') { }
580 36 37 unless ($f->is_ready)
590 37 3 if defined $slots->[$i]
600 1 36 if ($f->failure)
623 1 14 if ($generator = $args{'generate'}) { }
14 0 elsif (my $array = $args{'foreach'}) { }
627 25 40 unless @$array
636 3 27 if $future->is_ready