Branch Coverage

blib/lib/Math/PlanePath/CellularRule190.pm
Criterion Covered Total %
branch 34 42 80.9


line true false branch
76 7 3 unless (defined $self->{'n_start'})
121 0 140 if (2 * $frac >= 1)
130 6 134 if ($n < 1)
141 83 51 if ($n <= 3 * $d) { }
144 45 38 $self->{'mirror'} ? :
161 240 1388 if ($y < 0 or $x > $y)
166 240 1148 if ($x < 0)
171 496 652 if ($y % 2) { }
173 56 440 if ($x % 4 == 3)
184 246 406 $mirror ? :
56 596 if ($x % 4 == ($mirror ? 1 : 3))
190 218 378 $mirror ? :
199 0 222 unless ($x1, $y1, $x2, $y2) = _rect_for_V($x1, $y1, $x2, $y2)
217 55 156 $mirror ? :
11 211 if ($x1 < (my $neg_y1 = -$y1)) { }
0 211 elsif (($mirror ? $y1 - $x1 : $x1 + $y1) % 4 == 3) { }
228 0 0 if ($x1 < $x2) { }
233 0 0 if (($y1 += 1) > $y2)
240 60 162 $mirror ? :
12 210 if (($mirror ? $y2 - $x2 : $x2 + $y2) % 4 == 3)
242 12 0 if ($x2 > $unincremented_x1) { }