Branch Coverage

blib/lib/Math/PlanePath/CornerAlternating.pm
Criterion Covered Total %
branch 39 58 67.2


line true false branch
71 22 21 unless (defined $self->{'n_start'})
84 0 294 if ($n < 0)
112 105 189 if ($d % 2) { }
113 21 84 if ($r < 0) { }
42 42 elsif ($r < $d) { }
124 42 147 if ($r < 0) { }
84 63 elsif ($r < $d + $wider) { }
143 0 40 if ($x < 0 or $y < 0)
149 30 10 if ($y >= $xw) { }
152 10 20 $y % 2 ? :
156 6 4 $xw % 2 ? :
169 0 20 if ($x1 > $x2)
170 0 20 if ($y1 > $y2)
172 0 20 if ($y2 < 0 or $x2 < 0)
176 0 20 if ($x1 < 0)
177 0 20 if ($y1 < 0)
184 18 2 if ($x1 <= $t) { }
195 4 14 if ($y1 % 2)
197 0 4 $x2 < $t ? :
215 0 2 unless ($t % 2)
217 0 0 $y2 < $t ? :
236 14 6 if ($y2 >= $t)
249 6 8 if ($y2 % 2)
254 8 12 if ($y2 <= $t)
270 4 4 unless ($t % 2)
291 0 0 if ($n < 1)
296 0 0 if ($n <= $wider)
308 0 0 $d % 2 ? :
0 0 if ($n > $d * ($d + 1 + $wider) + ($d % 2 ? 0 : $wider))