Branch Coverage

blib/lib/Iterator/Util.pm
Criterion Covered Total %
branch 46 60 76.6


line true false branch
43 1 11 unless UNIVERSAL::isa($iter, 'Iterator')
48 2 40 if $iter->is_exhausted
69 0 2 unless UNIVERSAL::isa($iter, 'Iterator')
77 5 11 if &$test()
100 24 14 unless defined $step
105 19 64 if defined $to and $step > 0 && $from > $to || $step < 0 && $from < $to
131 9 34 if $index >= @items
150 0 2 if ref $items ne 'ARRAY'
156 2 9 if $index >= @$items
177 2 8 unless UNIVERSAL::isa($iter, 'Iterator')
182 4 4 if (wantarray)
195 4 10 if $num <= 0
217 0 7 unless UNIVERSAL::isa($_, 'Iterator')
223 0 3 if @its == 1
237 1 18 if @its == 0
263 0 4 unless UNIVERSAL::isa($_, 'Iterator')
270 0 10 if $iterA->is_exhausted or $iterB->is_exhausted
282 10 14 if $pkg ne 'Iterator' and $pkg ne 'Iterator::Util'
309 0 2 unless UNIVERSAL::isa($it, 'Iterator')
335 0 2 unless UNIVERSAL::isa($iter, 'Iterator')
343 2 7 if (&$code())
353 0 2 unless $found_it
380 0 6 unless UNIVERSAL::isa($iter, 'Iterator')
387 0 16 if $iterators[$it_index]->is_exhausted
392 4 12 if (++$it_index >= @iterators)
412 0 1 if @_ < 1
414 0 1 if @_ > 1
418 0 1 unless UNIVERSAL::isa($iter, 'Iterator')
427 1 6 if $iter->is_exhausted
431 4 2 unless $did_see{$value}++