Branch Coverage

blib/lib/Number/Range/Regex/Iterator.pm
Criterion Covered Total %
branch 58 70 82.8


line true false branch
41 0 14 unless ($range->isa('Number::Range::Regex::Range'))
44 3 11 if ($range->is_empty) { }
3 8 elsif ($range->isa('Number::Range::Regex::CompoundRange')) { }
52 8 3 if $$self{'ranges'}[0]->has_lower_bound
59 0 0 unless $$self{'ranges'}[0]->has_lower_bound
60 0 0 unless $$self{'ranges'}[-1]->has_upper_bound
61 0 0 if defined $$self{'size'}
73 27 97 if ($sr->contains($number))
77 19 8 if ($sr->has_lower_bound)
80 19 8 if ($sr->has_upper_bound)
86 24 27 if ($n == @{$$self{'ranges'};})
95 3 22 unless $first_r->has_lower_bound
98 22 0 if ($first_r->has_lower_bound)
100 18 4 if ($first_r->has_upper_bound)
111 3 12 unless $last_r->has_upper_bound
114 12 0 if ($last_r->has_upper_bound)
116 10 2 if ($last_r->has_lower_bound)
126 3 93 unless defined $$self{'number'}
127 3 90 if $$self{'out_of_range'}
133 3 11286 unless defined $$self{'number'}
134 2 11284 if $$self{'out_of_range'}
138 11261 23 $this_r->has_upper_bound ? :
11270 14 if ($this_r->has_upper_bound ? $$self{'number'} < $$this_r{'max'} : 1) { }
139 11248 22 if defined $$self{'rangepos_left'}
140 11248 22 if defined $$self{'rangepos_right'}
144 5 9 if ($$self{'rangenum'} == @{$$self{'ranges'};})
150 9 0 if ($new_r->has_upper_bound)
161 3 167 unless defined $$self{'number'}
162 2 165 if $$self{'out_of_range'}
166 136 29 $this_r->has_lower_bound ? :
157 8 if ($this_r->has_lower_bound ? $$self{'number'} > $$this_r{'min'} : 1) { }
167 129 28 if defined $$self{'rangepos_left'}
168 139 18 if defined $$self{'rangepos_right'}
172 3 5 if ($$self{'rangenum'} == -1)
195 0 0 unless defined $val