Branch Coverage

blib/lib/Set/Integer/Gapfillers.pm
Criterion Covered Total %
branch 67 70 95.7


line true false branch
24 65 68 unless $$self{'statuses'}[$n]
40 4 2 if ($$self{'statuses'}[0])
41 4 0 if ($segments_needed[0][0] < $$self{'lower'})
45 4 2 if ($$self{'statuses'}[-1])
46 4 0 if ($segments_needed[-1][1] > $$self{'upper'})
55 1 44 unless defined $args{'lower'}
56 1 43 unless defined $args{'upper'}
57 1 42 unless $args{'lower'} =~ /^-?\d+$/
58 1 41 unless $args{'upper'} =~ /^-?\d+$/
59 1 40 unless $args{'upper'} >= $args{'lower'}
61 1 39 unless defined $args{'sets'}
62 1 38 unless ref $args{'sets'} eq 'ARRAY'
66 1 123 unless scalar @{$pairref;} == 2
68 1 244 unless $n =~ /^-?\d+$/
71 2 120 unless $$pairref[0] <= $$pairref[1]
77 85 34 if ($i > 0) { }
78 1 84 unless $sets[$i][0] > $sets[$i - 1][1]
110 2 31 if ($args{'firsts'}[0] > $args{'upper'} or $args{'seconds'}[-1] < $args{'lower'})
125 22 9 $args{'lower'} <= $args{'seconds'}[$i - 1] ? :
126 12 19 $args{'upper'} <= $args{'seconds'}[$j] ? :
131 8 23 if ($args{'lower'} < $args{'firsts'}[0])
134 2 6 if ($j == 0) { }
137 1 1 unless ($status{'upper'})
145 10 2 unless ($args{'seconds'}[$p] + 1 == $args{'firsts'}[$p + 1])
153 2 4 unless ($status{'upper'})
171 5 18 if ($h == $j)
172 1 4 if ($status{'lower'} and $status{'upper'}) { }
1 3 elsif ($status{'lower'} and not $status{'upper'}) { }
3 0 elsif (not $status{'lower'} || $status{'upper'}) { }
191 12 6 if ($status{'lower'}) { }
206 19 7 unless ($args{'seconds'}[$p] + 1 == $args{'firsts'}[$p + 1])
215 12 6 unless ($status{'upper'})
226 9 59 if (defined $$paramsref{'expand'} and $$paramsref{'expand'}) { }
240 13 58 if (scalar @args)
241 10 3 if (not scalar(@args) % 2) { }