Branch Coverage

blib/lib/Integer/Partition.pm
Criterion Covered Total %
branch 39 42 92.8


line true false branch
73 0 24 if (not defined $n) { }
0 24 elsif ($n =~ /\D/ or $n < 1) { }
0 24 elsif ($n != int $n) { }
88 10 3 if (defined $arg and ref $arg eq 'HASH' and exists $$arg{'lexicographic'})
93 10 14 if ($forward) { }
102 10 14 $forward ? :
10 14 $forward ? :
122 157 159 if ($$self{'forward'})
123 19 138 if (++$$self{'count'} == 1) { }
10 128 elsif ($$self{'x'}[1] == $$self{'n'}) { }
9 119 elsif ($$self{'count'} == 2) { }
134 58 61 if ($$self{'m'} - $$self{'h'} > 1) { }
148 18 43 if $$self{'m'} - $$self{'h'} > 1
155 21 138 unless $$self{'count'}++
156 10 128 if $$self{'x'}[0] == 1
158 67 61 if ($$self{'x'}[$$self{'h'}] == 2) { }
171 45 16 $t ? :
172 16 45 if $t > 1
190 9 10 if ($$self{'forward'}) { }
199 9 10 $$self{'forward'} ? :
9 10 $$self{'forward'} ? :