Branch Coverage

blib/lib/Math/PlanePath/PixelRings.pm
Criterion Covered Total %
branch 30 54 55.5


line true false branch
115 2116 2125 if ($self->{'cumul_x'} == $self->{'cumul_y'}) { }
124 874 1242 if (($self->{'cumul_x'} + 0.5) ** 2 + $self->{'cumul_y'} ** 2 < ($r + $self->{'offset'}) ** 2)
139 883 1242 if (($self->{'cumul_x'} + 0.5) ** 2 + $self->{'cumul_y'} ** 2 < ($r + $self->{'offset'}) ** 2)
155 1 2116 if ($n < 2)
156 0 1 if ($n < 1)
159 0 2116 if (is_infinite($n))
167 0 2116 if ($n != $int)
171 0 0 if ($y2 == 0 and $x2 > 0)
183 0 4499191 if ($r >= @$cumul)
186 2116 4497075 if ($cumul->[$r] > $n)
206 0 2116 if ($rev = $n > $len / 2)
213 0 2116 if ($rev)
217 0 2116 if ($quadrant & 2)
221 0 2116 if ($quadrant & 1)
235 1 2999 if ($x == 0 and $y == 0)
243 0 2999 if ($xa < $ya)
250 879 2120 if ($r < &hypot($xa - 0.5, $ya))
254 2120 0 if ($xa == $ya)
257 4 2116 if ($r < &hypot($xa + 0.5, $ya - 1))
263 0 2116 if (is_infinite($r))
279 0 2116 if ($y < 0)
285 0 2116 if ($x < 0)
294 0 2116 if ($y > $x)
315 0 0 $x1 < 0 ^ $x2 < 0 || $y1 < 0 ^ $y2 < 0 ? :
325 0 0 if (is_infinite($r_min))
330 0 0 if (is_infinite($r_max)) { }
343 0 0 unless (defined $n_max)