Branch Coverage

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


line true false branch
114 2116 2125 if ($self->{'cumul_x'} == $self->{'cumul_y'}) { }
123 874 1242 if (($self->{'cumul_x'} + 0.5) ** 2 + $self->{'cumul_y'} ** 2 < ($r + $self->{'offset'}) ** 2)
138 883 1242 if (($self->{'cumul_x'} + 0.5) ** 2 + $self->{'cumul_y'} ** 2 < ($r + $self->{'offset'}) ** 2)
154 1 2116 if ($n < 2)
155 0 1 if ($n < 1)
158 0 2116 if (is_infinite($n))
166 0 2116 if ($n != $int)
170 0 0 if ($y2 == 0 and $x2 > 0)
182 0 4499191 if ($r >= @$cumul)
185 2116 4497075 if ($cumul->[$r] > $n)
205 0 2116 if ($rev = $n > $len / 2)
212 0 2116 if ($rev)
216 0 2116 if ($quadrant & 2)
220 0 2116 if ($quadrant & 1)
234 1 2999 if ($x == 0 and $y == 0)
242 0 2999 if ($xa < $ya)
249 879 2120 if ($r < &hypot($xa - 0.5, $ya))
253 2120 0 if ($xa == $ya)
256 4 2116 if ($r < &hypot($xa + 0.5, $ya - 1))
262 0 2116 if (is_infinite($r))
278 0 2116 if ($y < 0)
284 0 2116 if ($x < 0)
293 0 2116 if ($y > $x)
314 0 0 $x1 < 0 ^ $x2 < 0 || $y1 < 0 ^ $y2 < 0 ? :
324 0 0 if (is_infinite($r_min))
329 0 0 if (is_infinite($r_max)) { }
342 0 0 unless (defined $n_max)