Branch Coverage

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


line true false branch
313 13 51 unless ($trial->is_ready)
317 1 11 if $$trialp->is_cancelled
324 1 50 unless (eval { do { $stop = !&$cond($trial) ^ $sense; 1 } })
330 22 28 if ($stop)
338 2 26 if (not $is_try and $trial->failure)
356 0 10 unless defined($args{'while'}) + defined($args{'until'}) == 1 or defined $args{'foreach'} or defined $args{'generate'}
358 11 14 if ($args{'foreach'})
359 0 11 if $args{'generate'}
363 17 7 @$array ? :
367 14 11 if ($args{'generate'})
380 23 10 if ($again)
385 6 4 if ($otherwise) { }
393 3 11 if (my $orig_while = delete $args{'while'}) { }
1 10 elsif (my $orig_until = delete $args{'until'}) { }
395 3 3 if &$orig_while($_[0])
411 23 2 if $args{'while'}
412 2 23 if $args{'until'}
464 2 0 unless defined $args{'while'}
555 69 30 unless ($slots->[$idx])
558 26 43 unless (($item) = &$generator())
572 10 33 if ($collect eq 'array') { }
3 30 elsif ($collect eq 'scalar') { }
586 36 37 unless ($f->is_ready)
596 37 3 if defined $slots->[$i]
606 1 36 if ($f->failure)
629 1 14 if ($generator = $args{'generate'}) { }
14 0 elsif (my $array = $args{'foreach'}) { }
633 25 40 unless @$array
642 3 27 if $future->is_ready