Branch Coverage

lib/Math/Combinatorics.pm
Criterion Covered Total %
branch 63 82 76.8


line true false branch
318 2 18 if ($$self{'pin'}) { }
326 0 2 if ($values % 2 != 0)
341 36 20 if ($i > $values - 3)
342 18 18 if ($i == $values - 2)
345 4 4 if ($e > $$cursor[$i] and $e != $i and $$cursor[$i] != $i + 1)
356 12 10 if ($found[$e] and $e != $i)
361 12 8 if $elemfound
363 12 2 if ($elemfound)
370 28 20 if ($found[$j])
373 24 0 if ($elems[$j] != $i) { }
0 0 elsif ($j + 1 < @elems) { }
375 4 20 if ($j + 2 == @elems and $elems[$j + 1] == $i + 1)
417 0 0 unless $n >= 0 and $n == int $n
527 4 15 if (ref $freq eq 'ARRAY' and scalar @$freq == scalar @{$arg{'data'};}) { }
15 0 elsif (not ref $freq) { }
535 0 16 if $f < 1
558 1 18 if (defined $arg{'compare'}) { }
592 0 145 if ($$self{'frequency'})
609 0 163 if scalar @$data < $self->count
611 13 150 if ($$self{'cin'})
621 0 150 if ($combo_end == $begin or $combo_end == $end)
630 101 49 if ($total_set != $end)
643 12 37 if ($combo == $begin)
686 0 15 unless ($$self{'frequency'})
698 3 13 if $$self{'cache_multiset'}{$y}++
720 0 50 if ($$self{'frequency'})
731 4 192 if ($$self{'pin'})
740 0 192 if ($last < 1)
748 4 188 if ($i == -1)
754 92 96 if $$cursor[$i + 1] > $$cursor[$last]
792 0 86 unless ($$self{'frequency'})
802 60 84 if $$self{'cache_string'}{$y}++
825 0 0 if $i == int $i
903 0 0 if ($first == $last or $first == --$last) { }
924 14 109 if ($first == $middle or $last == $middle)
933 305 107 if ($first == $middle)
942 46 51 if ($first == $middle) { }
37 14 elsif ($first2 == $last) { }
973 210 247 if (&$compare($value, $$data[$middle]) == -1) { }
1008 37 61 if (&$compare($$data[$middle], $value) == -1) { }
1032 6 206 unless ($$self{'_permutation_cursor'})