Branch Coverage

blib/lib/Math/PlanePath/RationalsTree.pm
Criterion Covered Total %
branch 62 90 68.8


line true false branch
183 0 0 $self->{'tree_type'} eq 'L' ? :
211 0 0 unless $dir_minimum_dxdy{$self->{'tree_type'}}
228 0 0 unless $dir_maximum_dxdy{$self->{'tree_type'}}
274 0 2877 if ($n < $self->{'n_start'})
275 0 2877 if (is_infinite($n))
280 0 2877 if ($n != $int)
299 15 2862 if ($self->{'n_start'} == 0)
308 451 2426 unless ($self->{'reverse_bits'})
316 174 2703 if ($self->{'sep1s'}) { }
294 2409 elsif ($self->{'alternating'}) { }
15 2394 elsif ($self->{'tree_type'} eq 'L') { }
319 336 594 if ($nbit)
327 582 582 if ($nbit) { }
337 17 21 if ($nbit) { }
349 10400 9907 if ($nbit) { }
364 0 0 if ($self->{'tree_type'} eq 'L' and $x == 0 and $y == 1)
367 0 0 if ($x < 1 or $y < 1 or not _coprime($x, $y))
381 720 3185 if ($x < $self->{'n_start'} or $y < 1)
384 0 3185 if (is_infinite($x))
387 0 3185 if (is_infinite($y))
391 915 2270 unless my(@quotients) = _xy_to_quotients($x, $y)
396 467 1803 if ($self->{'sep1s'}) { }
404 1 1802 if ($quotients[0] < 0)
415 882 920 if ($self->{'alternating'})
422 14 1788 if ($self->{'tree_type'} eq 'L')
429 3 11 unless ($anyones)
435 939 1330 if ($self->{'reverse_bits'})
443 14 2255 if ($self->{'tree_type'} eq 'L') { }
468 3186 5107 unless $r
473 915 2271 if ($y > 1)
492 1 690 if $x1 > $x2
493 1 690 if $y1 > $y2
497 1 690 if ($x2 < 1 or $y2 < 1)
499 0 1 if ($self->{'n_start'}) { }
509 194 496 if ($x1 < 1)
510 194 496 if ($y1 < 1)
532 0 0 if ($x < $y)
570 14 0 if ($n >= $n_start) { }
579 0 0 $n >= $self->{'n_start'} ? :
584 12 1 if ($n > 0) { }
594 0 33 unless ($n >= 0)
604 11 0 $depth >= 0 ? :
611 11 0 $depth >= 0 ? :
616 0 0 if ($depth >= 0)
624 0 0 $depth >= 0 ? :