Branch Coverage

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


line true false branch
76 9 4 if (defined $total)
77 4 5 unless $total
82 4 8 if ($start > 0)
86 5 3 if (defined $total)
115 1 1 unless &$sub($data)
128 20 10 if (defined($data = &$next()))
147 20 2 if (defined($data = &$next()))
148 8 12 if (++$i == $n)
165 4 17 if &$sub($data)
176 1 4 if &$sub($data) and ++$n > 1
186 1 4 unless &$sub($data)
198 804 3 unless @buff
219 94 1 if ($memo_set) { }
287 3 5 if &$sub($data)
301 17 14 if &$sub($data)
320 24 11 unless &$sub($data)
331 1 2 if (not defined $cmp) { }
1 1 elsif (ref $cmp) { }
387 3 14 unless (@$group)
406 12 18 if $i == $n
408 22 8 if (defined(my $data = &$next())) { }
429 3 9 defined $sub ? :
430 0 5 $val > $memo ? :
5 7 if is_number($memo) and is_number($val)
432 2 5 if is_number($memo)
433 2 3 if is_number($val)
445 3 9 defined $sub ? :
446 5 0 $val < $memo ? :
5 7 if is_number($memo) and is_number($val)
448 2 5 if is_number($memo)
449 2 3 if is_number($val)
461 0 14 if (++$n % 100 == 0)
473 6 0 $opts{'cols'} ? :
483 42 2109 if $len > $col_lengths[$i]
494 6 0 if ($opts{'header'})
512 2 3 if &$sub($data)