Branch Coverage

blib/lib/Number/Range/Regex/CompoundRange.pm
Criterion Covered Total %
branch 55 72 76.3


line true false branch
24 0 918 ref $_[-1] eq 'HASH' ? :
42 0 216 $$opts{'readable'} ? :
44 197 19 if (@{$$self{'ranges'};}) { }
49 0 216 if $$opts{'readable'}
51 0 216 $$opts{'readable'} ? :
53 216 0 if ($$opts{'comment'})
55 0 216 $$opts{'readable'} ? :
56 0 216 $$opts{'readable'} ? :
64 47 466 if ($$lower{'max'} > $$upper{'max'}) { }
32 434 elsif ($$lower{'max'} >= $$upper{'min'}) { }
90 681 0 $other->isa('Number::Range::Regex::SimpleRange') ? :
44 681 $other->isa('Number::Range::Regex::CompoundRange') ? :
109 368 217 if ($$this_s{'min'} < $$this_o{'min'}) { }
145 72 elsif ($$this_s{'min'} > $$this_o{'min'}) { }
116 13 59 if ($$this_s{'max'} < $$this_o{'max'}) { }
19 40 elsif ($$this_s{'max'} > $$this_o{'max'}) { }
147 328 225 if ($$this_s{'min'} < $$this_o{'min'}) { }
106 119 elsif ($$this_o{'min'} < $$this_s{'min'}) { }
156 0 119 unless $$this_s{'max'} == $$this_o{'max'}
163 661 64 if ($o_ptr < @o_ranges) { }
52 12 elsif ($s_ptr < @s_ranges) { }
201 10 25 unless @included
203 22 3 if ($included[0]{'min'} != neg_inf())
209 0 34 if ($$last{'max'} + 1 > $$this{'min'} - 1) { }
215 22 3 if ($included[-1]{'max'} != pos_inf())
222 660 21 ref $_[-1] eq 'HASH' ? :
225 0 681 if @other > 1
227 2 538 if ($$opts{'warn_overlap'} and $$sections{'in_both'} and @{$$sections{'in_both'};})
228 2 0 $$opts{'warn_overlap'} eq '1' ? :
232 0 681 if (@in_either == 0) { }
570 111 elsif (@in_either == 1) { }
248 69 301 if ($last_r->touches($this_r))
272 207 650 if $r->contains($n)
284 0 0 if $self->is_empty
290 0 0 if $self->is_empty
296 5 39 if $self->is_empty