Branch Coverage

blib/lib/Iterator/Flex/Take.pm
Criterion Covered Total %
branch 19 28 67.8


line true false branch
74 3 13 unless &Scalar::Util::looks_like_number($n) and int $n == $n and $n > 0
90 0 13 unless Ref::Util::XS::is_hashref($state)
100 0 13 if defined $array
138 7 6 if ($lazy) { }
162 16 95 if $iterator_state == 1 or $took == $n
168 5 90 if not $value and $src->$is_exhausted
188 4 0 if defined $current
199 20 0 defined $current ? :
204 10 102 if $iterator_state == 1
207 14 88 unless (defined $array)
220 0 14 unless (eval { do { $array = []; push @$array, $src->next; push @$array, $src->next until @$array == $n; 1 } })
221 0 0 unless Ref::Util::XS::is_blessed_ref($@) and $@->isa("Iterator::Flex::Failure::Exhausted")
225 0 0 unless (@$array)
237 10 78 if ($next == $len)