Branch Coverage

blib/lib/Data/Enumerable/Lazy.pm
Criterion Covered Total %
branch 44 62 70.9


line true false branch
404 3229 202 unless ($self->{'_buff'} and $self->{'_buff'}->has_next)
406 1464 1765 unless $self->no_wrap
409 1765 1666 $self->no_wrap ? :
437 0 5399 unless (eval { do { $res = $self->_has_next_in_buffer || $self->_has_next_in_generator; 1 } })
456 0 0 unless (eval { do { $self->on_reset; 1 } })
471 0 24 unless $self->is_finite
523 0 2 unless $self->is_finite
561 5 4 if $self->is_finite
566 0 65 if defined $prev_has_next
572 0 84 if ($max_lookahead > 0)
574 0 0 if ($ix > $max_lookahead)
580 57 27 if &$callback($next)
588 0 56 unless $initialized
606 0 1 unless $self->is_finite
644 0 53 if defined $prev_has_next
647 52 1 if ($self->has_next)
649 47 5 if (&$callback($next_el))
657 0 47 unless $initialized
658 0 47 unless $prev_has_next
682 0 16 unless my $on_next = delete $ext{'on_next'}
683 0 16 unless ref $on_next eq 'CODE'
688 137 1 $this->has_next ? :
710 1 2 unless $self->is_finite
733 1917 1434 if ($self->no_wrap or $val_is_stream) { }
744 1855 3544 if defined $self->{'_buff'}
823 13 36 $ix > $max_ix ? :
865 0 4 if scalar @streams == 0
867 0 4 if scalar @streams == 1
877 4 13 unless $a
891 1 2 if scalar @streams < 2
922 1 1 if ($options->{'chomp'})