Branch Coverage

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


line true false branch
181 0 0 $self->{'tree_type'} eq 'L' ? :
209 0 0 unless $dir_minimum_dxdy{$self->{'tree_type'}}
226 0 0 unless $dir_maximum_dxdy{$self->{'tree_type'}}
272 0 2877 if ($n < $self->{'n_start'})
273 0 2877 if (is_infinite($n))
278 0 2877 if ($n != $int)
297 15 2862 if ($self->{'n_start'} == 0)
306 451 2426 unless ($self->{'reverse_bits'})
314 174 2703 if ($self->{'sep1s'}) { }
294 2409 elsif ($self->{'alternating'}) { }
15 2394 elsif ($self->{'tree_type'} eq 'L') { }
317 336 594 if ($nbit)
325 582 582 if ($nbit) { }
335 17 21 if ($nbit) { }
347 10400 9907 if ($nbit) { }
362 0 0 if ($self->{'tree_type'} eq 'L' and $x == 0 and $y == 1)
365 0 0 if ($x < 1 or $y < 1 or not _coprime($x, $y))
379 720 3185 if ($x < $self->{'n_start'} or $y < 1)
382 0 3185 if (is_infinite($x))
385 0 3185 if (is_infinite($y))
389 915 2270 unless my(@quotients) = _xy_to_quotients($x, $y)
394 467 1803 if ($self->{'sep1s'}) { }
402 1 1802 if ($quotients[0] < 0)
413 882 920 if ($self->{'alternating'})
420 14 1788 if ($self->{'tree_type'} eq 'L')
427 3 11 unless ($anyones)
433 939 1330 if ($self->{'reverse_bits'})
441 14 2255 if ($self->{'tree_type'} eq 'L') { }
466 3186 5107 unless $r
471 915 2271 if ($y > 1)
490 1 690 if $x1 > $x2
491 1 690 if $y1 > $y2
495 1 690 if ($x2 < 1 or $y2 < 1)
497 0 1 if ($self->{'n_start'}) { }
507 194 496 if ($x1 < 1)
508 194 496 if ($y1 < 1)
530 0 0 if ($x < $y)
568 14 0 if ($n >= $n_start) { }
577 0 0 $n >= $self->{'n_start'} ? :
582 12 1 if ($n > 0) { }
592 0 33 unless ($n >= 0)
602 11 0 $depth >= 0 ? :
609 11 0 $depth >= 0 ? :
614 0 0 if ($depth >= 0)
622 0 0 $depth >= 0 ? :