Branch Coverage

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


line true false branch
70 9 4 if (defined $total)
71 4 5 unless $total
76 4 8 if ($start > 0)
80 5 3 if (defined $total)
109 1 1 unless &$sub($data)
122 20 10 if (defined($data = &$next()))
141 20 2 if (defined($data = &$next()))
142 8 12 if (++$i == $n)
159 4 17 if &$sub($data)
170 1 4 if &$sub($data) and ++$n > 1
180 1 4 unless &$sub($data)
192 800 3 unless @buff
207 94 1 if ($memo_set) { }
275 3 5 if &$sub($data)
289 17 14 if &$sub($data)
308 24 11 unless &$sub($data)
319 1 2 if (not defined $cmp) { }
1 1 elsif (ref $cmp) { }
375 3 14 unless (@$group)
394 12 18 if $i == $n
396 22 8 if (defined(my $data = &$next())) { }
417 3 9 defined $sub ? :
418 0 5 $val > $memo ? :
5 7 if is_number($memo) and is_number($val)
420 2 5 if is_number($memo)
421 2 3 if is_number($val)
433 3 9 defined $sub ? :
434 5 0 $val < $memo ? :
5 7 if is_number($memo) and is_number($val)
436 2 5 if is_number($memo)
437 2 3 if is_number($val)
449 0 14 if (++$n % 100 == 0)
461 6 0 $opts{'cols'} ? :
471 42 2109 if $len > $col_lengths[$i]
482 6 0 if ($opts{'header'})
500 2 3 if &$sub($data)