Branch Coverage

blib/lib/Number/Range.pm
Criterion Covered Total %
branch 38 70 54.2


line true false branch
43 0 16 if $item =~ /$validation/g
45 15 12 if ($section =~ /$rangesep/) { }
47 0 15 if ($start > $end)
48 0 0 if warnings::enabled()
51 0 15 if ($start == $end) { }
52 0 0 if warnings::enabled()
53 0 0 if ($type eq 'add') { }
0 0 elsif ($type eq 'del') { }
64 14 1 if ($type eq 'add') { }
1 0 elsif ($type eq 'del') { }
65 3 11 if ($end - $start > $$self{'max_hash_size'}) { }
72 0 1 if ($end - $start > $$self{'max_hash_size'}) { }
84 12 0 if ($type eq 'add') { }
0 0 elsif ($type eq 'del') { }
101 0 0 unless ($val =~ /^\d+$/)
122 6 3 unless (exists $$self{'_largeRangehash'})
127 3 0 if ($test >= @$range[0] and $test <= @$range[1])
138 0 571 if (warnings::enabled())
139 0 0 if $self->inrange($number)
148 0 11 if (warnings::enabled())
149 0 0 unless $self->inrange($number)
157 25 2 if (scalar @_ == 1) { }
158 19 6 if (exists $$self{'_rangehash'}{-(-$_[0])} or $self->_testlarge($_[0])) { }
165 1 1 if (wantarray) { }
168 2 1 $self->inrange($test) ? :
173 0 1 unless ($self->inrange($test))
195 5 3 if (wantarray) { }
197 0 5 if (not $excludeLarge and exists $$self{'_largeRangehash'})
201 0 0 if (@$range[0] > 9223372036854775807 or @$range[1] > 9223372036854775807 or @$range[1] - @$range[0] > 9223372036854775807)
204 0 0 if warnings::enabled()
219 157 2 if ($current == $previous + 1) { }
236 1 1 if (exists $$self{'_largeRangehash'})
252 1 1 if (@range)
260 59 2 if ($current == $previous + 1) { }
272 2 0 if ($$self{'_largeRangehash'})