Branch Coverage

blib/lib/Iterator/Flex/Buffer.pm
Criterion Covered Total %
branch 18 24 75.0


line true false branch
62 0 8 unless &Scalar::Util::looks_like_number($capacity) and int $capacity == $capacity and $capacity >= 0
76 0 8 unless Ref::Util::XS::is_hashref($state)
85 0 8 defined $array ? :
114 50 0 defined $prev ? :
118 40 0 defined $current ? :
123 10 156 if $iterator_state == 1
128 50 106 if ($next > $nread)
130 7 43 if ($src_is_exhausted)
136 31 12 defined $current ? :
153 12 31 unless (eval { do { push @$array, $src->next; push @$array, $src->next until @$array == $capacity + 1; 1 } })
154 0 12 unless Ref::Util::XS::is_blessed_ref($@) and $@->isa("Iterator::Flex::Failure::Exhausted")
158 5 7 if (@$array == 1)