Branch Coverage

blib/lib/Catmandu/Iterable.pm
Criterion Covered Total %
branch 67 72 93.0


line true false branch
75 9 4 if (defined $total)
76 4 5 unless $total
81 4 8 if ($start > 0)
85 5 3 if (defined $total)
114 1 1 unless &$sub($data)
127 20 10 if (defined($data = &$next()))
146 20 2 if (defined($data = &$next()))
147 8 12 if (++$i == $n)
164 4 17 if &$sub($data)
175 1 4 if &$sub($data) and ++$n > 1
185 1 4 unless &$sub($data)
197 800 3 unless @buff
212 94 1 if ($memo_set) { }
280 3 5 if &$sub($data)
294 17 14 if &$sub($data)
313 24 11 unless &$sub($data)
324 1 2 if (not defined $cmp) { }
1 1 elsif (ref $cmp) { }
380 3 14 unless (@$group)
399 12 18 if $i == $n
401 22 8 if (defined(my $data = &$next())) { }
422 3 9 defined $sub ? :
423 0 5 $val > $memo ? :
5 7 if is_number($memo) and is_number($val)
425 2 5 if is_number($memo)
426 2 3 if is_number($val)
438 3 9 defined $sub ? :
439 5 0 $val < $memo ? :
5 7 if is_number($memo) and is_number($val)
441 2 5 if is_number($memo)
442 2 3 if is_number($val)
454 0 14 if (++$n % 100 == 0)
466 6 0 $opts{'cols'} ? :
476 42 2109 if $len > $col_lengths[$i]
487 6 0 if ($opts{'header'})
505 2 3 if &$sub($data)