Branch Coverage

blib/lib/Math/PlanePath/TerdragonCurve.pm
Criterion Covered Total %
branch 33 100 33.0


line true false branch
92 0 0 $self->{'arms'} == 1 ? :
100 0 0 $self->{'arms'} == 1 ? :
122 0 0 $self->{'arms'} == 1 ? :
146 0 441 if ($n < 0)
147 0 441 if (is_infinite($n))
167 41 400 if ($rot >= 3)
172 272 169 if ($rot == 0) { }
105 64 elsif ($rot == 1) { }
181 1007 1589 if ($digit == 1) { }
808 781 elsif ($digit == 2) { }
205 0 0 if ($self->{'arms'} == 6) { }
224 0 55 if (is_infinite($sum))
225 0 55 if ($sum % 2)
228 12 43 if ($x == 0 and $y == 0)
238 24 105 if $arm >= $arms_count
240 17 88 if ($odd)
264 89 445 if ($x == 0 and $y == 0)
265 4 132 if ($d == 0 and $x == -2 and $y == 0)
266 16 120 if ($d == 2 and $x == 1 and $y == 1)
267 20 153 if ($d == 1 and $x == 1 and $y == -1)
272 192 213 if ($digit == 1)
341 0 1000 if ($n < 0)
344 0 1000 if (is_infinite($n))
360 0 1000 if ($n)
384 0 0 if ($n < 0)
385 0 0 if (is_infinite($n))
406 0 0 if ($digits[$i] == 1 and $digits[$i - 1] != 0)
426 0 0 if ($n == 0)
442 0 0 if (is_infinite($n))
443 0 0 unless ($n >= 0)
449 0 0 if ($arms == 6)
450 0 0 if (_divrem_mutate($n, $arms))
456 0 0 if ($disallowed[$digit][$prev])
480 0 0 if (defined $level and $level < 0)
481 0 0 if ($i <= 2)
490 0 0 if (defined $level) { }
491 0 0 if ($level >= 0) { }
492 0 0 if (@digits > $level)
501 0 0 if ($digits[-1]) { }
534 0 0 if (is_infinite($n))
535 0 0 unless ($n >= 0)
538 0 0 if (defined $level and $level == 0)
545 0 0 if ($arms == 6)
549 0 0 if ($arm != $arms - 1)
555 0 0 if (defined $level)
558 0 0 if (defined $level and $level == 0)
562 0 0 unless $n
565 0 0 if ($disallowed[$digit][$prev])
568 0 0 if (defined $level)
581 0 0 if ($disallowed[$digit][$prev])