Branch Coverage

blib/lib/Math/Interpolator.pm
Criterion Covered Total %
branch 31 42 73.8


line true false branch
112 0 137 if (@$self < 2)
116 0 0 if @$self < 2
123 181 136 if ($x >= $$self[$try]->$x_method) { }
129 7 141 if ($min == 0 and $x < $$self[$min]->$x_method) { }
7 247 elsif ($max == @$self - 1 and $x > $$self[$max]->$x_method) { }
130 5 2 unless $$self[0]->role eq 'SOURCE'
133 0 2 if $min == $max
136 5 2 unless $$self[$max]->role eq 'SOURCE'
139 0 2 if $min == $max
142 2 132 if ($$self[$min]->role eq 'SOURCE') { }
6 126 elsif ($$self[$max]->role eq 'SOURCE') { }
144 0 2 if $min == $max
145 0 2 unless $min == 0
149 1 5 if $min == $max
150 3 2 unless $max == @$self - 1
154 0 200 unless $$self[$min]->role eq 'KNOT' and $$self[$max]->role eq 'KNOT'
157 124 76 unless --$n
159 2 74 if $min == 0 or $max == @$self - 1
162 0 74 if ($$self[$min - 1]->role eq 'SOURCE')
168 0 74 if ($$self[$max + 1]->role eq 'SOURCE')
172 74 0 unless $expanded