Branch Coverage

blib/lib/Number/RangeTracker.pm
Criterion Covered Total %
branch 45 60 75.0


line true false branch
110 0 568 if (ref $_ eq 'ARRAY') { }
0 568 elsif (/^\d+\.\.\d+$/) { }
121 0 93 if scalar @ranges % 2 != 0
150 1 283 if $self->_messy_rem and $add_or_rem eq '_added'
153 0 284 unless looks_like_number $start
155 0 284 unless looks_like_number $end
158 0 284 if ($start > $end)
164 0 284 if (exists $$self{$add_or_rem}{$start}) { }
172 254 30 if ($add_or_rem eq '_added') { }
202 9 79 unless $self->_messy_add or $self->_messy_rem
204 64 15 if $self->_messy_add
206 18 61 if ($self->_messy_rem)
226 82 320 unless (@cur_interval)
232 66 254 if ($start <= $cur_end + 1) { }
257 0 30 unless defined $left_start and defined $right_start
263 11 19 if ($right_start_idx - $left_start_idx > 0) { }
266 11 0 if $right_start_idx > -1
269 18 1 if $left_start_idx > -1
273 18 12 if ($start <= $left_end and $left_start_idx != -1)
278 21 9 if ($end >= $right_start and $end < $right_end)
343 1 6 unless defined $start
346 2 4 if ($end < $query) { }
370 5 3 if (wantarray) { }
3 0 elsif (defined wantarray) { }
0 0 elsif (not defined wantarray) { }
403 1 1 if (wantarray) { }
1 0 elsif (defined wantarray) { }
0 0 elsif (not defined wantarray) { }
448 1 1 unless defined $universe_start
449 1 1 unless defined $universe_end