Branch Coverage

blib/lib/Math/PlanePath/AlternatePaper.pm
Criterion Covered Total %
branch 71 128 55.4


line true false branch
95 0 0 $self->arms_count <= 3 ? :
101 0 0 $self->arms_count == 1 ? :
166 0 7847 if ($n < 0)
167 0 7847 if (is_infinite($n))
204 3366 4481 if ($arm & 1)
207 2886 4961 if ($arm & 2)
210 2023 5824 if ($arm & 4)
249 0 159 if (is_infinite($x))
250 0 159 if (is_infinite($y))
257 118 113 if ++$arm >= $arms
261 41 72 if ++$arm >= $arms
276 97 162 if ($y < 0 or $y > $x or $x < 0)
284 0 162 if (is_infinite($level))
301 135 312 if ($rev) { }
302 51 84 if ($x + $y < 2 * $len) { }
304 27 24 if ($x < $len) { }
314 35 49 if ($y > $len or $x == $len and $y == $len) { }
327 180 132 if ($x + $y <= 2 * $len and not $x == $len && $y == $len and not $x == 2 * $len && $y == 0) { }
331 123 57 if ($x <= $len) { }
341 75 57 if ($y >= $len and not $x == 2 * $len && $y == $len) { }
357 169 278 if ($big_rev) { }
358 77 92 if ($big_x + $big_y <= 2 * $len and not $big_x == $len && $big_y == $len and not $big_x == 2 * $len && $big_y == 0) { }
362 47 30 if ($big_x <= $len) { }
372 37 55 if ($big_y >= $len and not $big_x == 2 * $len && $big_y == $len) { }
385 177 101 if ($big_x + $big_y < 2 * $len) { }
387 69 108 if ($big_x < $len) { }
397 60 41 if ($big_y > $len or $big_x == $len and $big_y == $len) { }
412 66 96 if ($x)
413 14 52 $rev ? :
415 66 96 if ($big_x)
416 51 15 $big_rev ? :
422 102 60 $n == $big_n ? :
437 0 40 if $x1 > $x2
438 0 40 if $y1 > $y2
443 0 40 if ($arms == 1 and $y1 > $x2 or $arms <= 2 and $x2 < 0 or $arms <= 4 and $y2 < 0)
456 35 5 $arms >= 2 ? :
25 15 $arms >= 4 ? :
15 25 $arms >= 6 ? :
472 0 2000 if ($n < 0)
473 0 2000 if (is_infinite($n))
489 681 1319 ($#bits ^ $arm) & 1 ? :
497 9088 6903 if ($bit != $prev)
509 0 2000 if ($n)
518 0 0 $arm & 1 ? :
522 0 0 if ($bits[0])
731 0 0 if ($level == 0)
735 0 0 $odd ? :
741 0 0 if ($level == 0)
745 0 0 $odd ? :
752 0 0 $odd ? :
762 0 0 if (not $n >= 0 or is_infinite($n))
769 0 0 if ($arm == 1)
775 0 0 unless ($arm == 0 or $arm == 7 and $n > 0)
786 0 0 if (not $n >= 0 or is_infinite($n))
789 0 0 if ($self->{'arms'} >= 8 and $n == 15)
790 0 0 if (_divrem_mutate($n, $self->{'arms'}) >= 2)
800 0 0 if ($self->{'arms'} >= 8 or not $n >= 0 or is_infinite($n))
807 0 0 if (_divrem_mutate($n, $self->{'arms'}) >= 1)
827 0 0 if ($arms >= 8 or not $n >= 0 or is_infinite($n))
834 0 0 if ($n == 1 and $arms >= 4 or $n == 3 and $arms >= 5 or $n == 5 and $arms == 7)
839 0 0 if (_divrem_mutate($n, $arms) < $arms - 1)
844 0 0 if ($arms % 2) { }
861 0 0 if ($digit >= 2)
869 0 0 if ($digit == 1 or $digit == 3)