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 } })
453 0 0 unless (eval { do { $self->on_reset; 1 } })
468 0 24 unless $self->is_finite
504 0 2 unless $self->is_finite
534 5 4 if $self->is_finite
539 0 65 if defined $prev_has_next
545 0 84 if ($max_lookahead > 0)
547 0 0 if ($ix > $max_lookahead)
553 57 27 if &$callback($next)
561 0 56 unless $initialized
579 0 1 unless $self->is_finite
617 0 53 if defined $prev_has_next
620 52 1 if ($self->has_next)
622 47 5 if (&$callback($next_el))
630 0 47 unless $initialized
631 0 47 unless $prev_has_next
655 0 16 unless my $on_next = delete $ext{'on_next'}
656 0 16 unless ref $on_next eq 'CODE'
661 137 1 $this->has_next ? :
683 1 2 unless $self->is_finite
706 1917 1434 if ($self->no_wrap or $val_is_stream) { }
717 1855 3544 if defined $self->{'_buff'}
796 13 36 $ix > $max_ix ? :
838 0 4 if scalar @streams == 0
840 0 4 if scalar @streams == 1
850 4 13 unless $a
864 1 2 if scalar @streams < 2
895 1 1 if ($options->{'chomp'})