blib/lib/Math/PlanePath/HexSpiral.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 22 | 30 | 73.3 |
line | true | false | branch |
---|---|---|---|
80 | 0 | 0 | $self->{'wider'} ? : |
93 | 0 | 0 | $self->{'wider'} % 2 ? : |
129 | 4 | 2 | unless (defined $self->{'n_start'}) |
170 | 0 | 51 | if ($n < 0) |
183 | 24 | 27 | if ($n <= $d + $w) |
190 | 4 | 23 | if ($n <= $d - 1) |
196 | 7 | 16 | if ($n <= $d) |
202 | 7 | 9 | if ($n <= $d + $w) |
208 | 7 | 2 | if ($n <= $d) |
231 | 0 | 9 | if (($x ^ $y ^ $w) & 1) |
237 | 3 | 6 | if ($ax > $ay) { } |
240 | 2 | 1 | if ($x > 0) { } |
257 | 2 | 4 | if ($y > 0) { } |
285 | 1 | 0 | if ($x >= $w) |
291 | 1 | 0 | $y >= $x ? : |