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 26 415 if ($rot >= 3)
172 258 183 if ($rot == 0) { }
128 55 elsif ($rot == 1) { }
181 1157 2007 if ($digit == 1) { }
971 1036 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 22 107 if $arm >= $arms_count
240 26 81 if ($odd)
264 82 520 if ($x == 0 and $y == 0)
265 6 161 if ($d == 0 and $x == -2 and $y == 0)
266 23 137 if ($d == 2 and $x == 1 and $y == 1)
267 18 175 if ($d == 1 and $x == 1 and $y == -1)
272 212 261 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])