Branch Coverage

blib/lib/Math/PlanePath/GcdRationals.pm
Criterion Covered Total %
branch 35 48 72.9


line true false branch
110 0 0 $self->{'pairs_order'} eq 'diagonals_down' ? :
152 0 10 unless $self->{'pairs_order_n_to_xy'} = $self->can("_pairs_order__${pairs_order}__n_to_xy") and $self->{'pairs_order_xygr_to_n'} = $self->can("_pairs_order__${pairs_order}__xygr_to_n")
163 0 237 if ($n < 1)
164 0 237 if (is_infinite($n))
169 0 237 if ($n != $int)
237 43 37 if ($n > 0) { }
249 43 37 if ($n > 0) { }
314 0 789 if (is_infinite($x))
315 0 789 if (is_infinite($y))
316 221 568 if ($x < 1 or $y < 1 or not _coprime($x, $y))
361 10 55 if ($r == 0)
387 7 73 if ($r == 0)
396 7 73 if ($r == 0)
453 0 44 if $x1 > $x2
454 0 44 if $y1 > $y2
458 0 44 if ($x2 < 1 or $y2 < 1)
462 1 43 if ($x1 < 1)
463 1 43 if ($y1 < 1)
465 0 44 if ($self->{'pairs_order'} =~ /^diagonals/)
555 3 256 if (ref $x and $x->isa('Math::BigInt') or ref $y and $y->isa('Math::BigInt'))
562 0 256 unless ($x > 0)
565 192 64 if ($y > $x)
571 256 112 if ($y <= 1)
572 157 99 $y == 0 ? :