Branch Coverage

blib/lib/Math/PlanePath/CellularRule57.pm
Criterion Covered Total %
branch 70 80 87.5


line true false branch
55 0 0 $self->{'mirror'} ? :
65 0 0 $self->{'mirror'} ? :
76 0 2 unless (defined $self->{'n_start'})
147 0 51 if (2 * $frac >= 1)
156 10 41 if ($n <= 1)
157 4 6 if ($n == 1) { }
171 20 21 if ($self->{'mirror'}) { }
172 7 13 if ($n <= $d)
179 1 12 if ($n < int 2 * $d / 3)
186 2 10 if ($n < int(($d + 2) / 3))
193 3 7 if ($n < $d)
200 5 2 if ($n < int((2 * $d + 5) / 3))
212 3 18 if ($n < $d)
219 2 16 if ($n < int(($d + 2) / 3))
226 1 15 if ($n < int 2 * $d / 3)
233 7 8 if ($n <= $d)
240 5 3 if ($n < int(($d + 4) / 3))
259 480 512 if ($y < 0 or $x < -$y or $x > $y)
266 256 256 if ($self->{'mirror'}) { }
269 136 120 if ($y % 2) { }
273 28 108 if ($x < -$d)
276 36 72 if ($x < 0) { }
28 44 elsif ($x > $d) { }
278 24 12 if (($x += $d + 2) % 3)
286 12 32 unless ($x % 3)
294 64 56 if ($x >= 0) { }
296 15 49 if ($x <= $d and ($x -= $d) % 3 == 0)
302 21 35 if ($x >= -$d and ($x += $d + 1) % 3)
311 136 120 if ($y % 2) { }
315 36 100 if ($x <= -$d) { }
36 64 elsif ($x <= 0) { }
36 28 elsif ($x >= $d) { }
317 28 8 if ($x < -$d)
322 12 24 unless (($x += $d + 1) % 3)
331 16 12 if ($x % 3)
340 56 64 if ($x > 0) { }
342 21 35 if ($x <= $d and ($x -= $d + 1) % 3)
348 15 49 if (($x += $d) >= 0 and not $x % 3)
370 0 0 unless ($x1, $y1, $x2, $y2) = _rect_for_V($x1, $y1, $x2, $y2)
380 0 0 $y1 < 1 ? :