Branch Coverage

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


line true false branch
61 0 8 unless &Scalar::Util::looks_like_number($capacity) and int $capacity == $capacity and $capacity >= 0
75 0 8 unless Ref::Util::XS::is_hashref($state)
84 0 8 defined $array ? :
113 50 0 defined $prev ? :
117 40 0 defined $current ? :
122 10 156 if $iterator_state == 1
127 50 106 if ($next > $nread)
129 7 43 if ($src_is_exhausted)
135 31 12 defined $current ? :
152 12 31 unless (eval { do { push @$array, $src->next; push @$array, $src->next until @$array == $capacity + 1; 1 } })
153 0 12 unless Ref::Util::XS::is_blessed_ref($@) and $@->isa("Iterator::Flex::Failure::Exhausted")
157 5 7 if (@$array == 1)