Branch Coverage

blib/lib/Math/PlanePath/CoprimeColumns.pm
Criterion Covered Total %
branch 38 48 79.1


line true false branch
72 7 1 unless (defined $self->{'n_start'})
110 2 44 if (2 * $n < -1)
113 0 44 if (is_infinite($n))
123 0 44 if (2 * $frac >= 1)
139 44 208 if ($Math::PlanePath::CoprimeColumns::_x_to_n[$x] > $n)
153 90 14 if (_coprime($x, $y))
154 44 46 if (--$n < 0)
158 0 60 if (++$y >= $x)
165 27 17 if ($x >= 2 and $self->{'direction'} eq 'down')
175 0 0 if ($x < 1 or $y < 1 or $y >= $x + ($x == 1) or not _coprime($x, $y))
189 0 11283 if (is_infinite($x))
190 0 11283 if (is_infinite($y))
191 7282 3052 if ($x < 1 or $y < 1 or $y >= $x + ($x == 1) or not _coprime($x, $y))
198 2034 1018 if ($x >= 2 and $self->{'direction'} eq 'down')
207 2935 117 if ($y != 1)
209 68320 61812 if (_coprime($x, $i))
232 1 23 if $x1 > $x2
233 0 24 if $y1 > $y2
240 0 24 if ($x2 < 1 or $y2 < 1 or $y1 >= $x2 + ($x2 == 1))
246 0 24 if (is_infinite($x2))
255 2 22 if ($x1 < 0)
282 424 171435 if ($y > $x)
283 56 368 if ($x <= 1)
291 171803 525372 if ($y <= 1)