Branch Coverage

blib/lib/Math/PlanePath/ChanTree.pm
Criterion Covered Total %
branch 66 142 46.4


line true false branch
106 0 0 $self->{'reduced'} || $self->{'k'} == 2 ? :
112 0 0 $self->{'k'} & 1 ? :
119 0 0 $self->{'k'} == 2 || $self->{'reduced'} && ($self->{'k'} & 1) == 0 ? :
126 0 0 $self->{'k'} == 2 || $self->{'reduced'} ? :
133 0 0 $self->{'k'} & 1 ? :
139 0 0 $self->{'k'} == 2 || $self->{'k'} & 1 ? :
146 0 0 $self->{'k'} == 2 ? :
173 0 0 if ($self->{'k'} == 5 and $self->{'reduced'})
174 0 0 if ($self->{'k'} == 7 and $self->{'reduced'})
189 4 5 unless (defined $self->{'n_start'})
227 0 72 if ($n < $self->{'n_start'})
231 0 72 if (is_infinite($n))
235 0 72 if ($n != $int)
255 20 52 if ($x > $half_k)
258 44 28 if ($y > $half_k)
307 72 0 if ($self->{'digit_order'} eq 'HtoL')
312 54 10 $digit <= $half_ceil ? :
313 40 24 $digit < $half_ceil ? :
314 24 40 $digit < $half_ceil - 1 ? :
322 8 64 if ($k & 1 and $n % 2 == 0)
323 0 8 if ($self->{'points'} eq 'all_div') { }
0 8 elsif ($self->{'points'} eq 'all_mul') { }
327 0 0 if ($self->{'reduced'} and $x % 2 == 0) { }
337 18 54 if ($self->{'reduced'})
339 0 18 if ($k & 1) { }
342 0 0 if $x % $k or $y % $k
372 0 36 if (is_infinite($x))
375 0 36 if (is_infinite($y))
386 9 27 if ($k & 1)
387 0 0 if ($self->{'points'} eq 'all_div' or $self->{'points'} eq 'all_mul' and $self->{'reduced'})
393 0 0 if (defined $n)
395 0 0 if ($nx == $x and $ny == $y)
400 0 9 if ($self->{'points'} eq 'all_mul' and $y % 2 == 0)
405 0 0 if (defined $n)
407 0 0 if ($nx == $x and $ny == $y)
414 0 9 if ($x % 2 and $y % 2)
419 0 0 if (ref $x and ref $y and $x < 16777215 and $y < 16777215)
425 9 27 if ($self->{'reduced'})
427 0 9 unless (_coprime($x, $y))
516 0 68 if ($x < 1 or $y < 1)
521 7 61 if ($x == $y)
522 5 2 if ($x == $half_k) { }
2 0 elsif ($x == 1 and $self->{'reduced'}) { }
537 38 23 if ($diff < 0) { }
540 19 19 if ($diff == -1 and $x < $half_ceil)
548 12 7 if ($t < $half_ceil) { }
555 1 6 if ($k & 1) { }
560 0 1 if ($next_x % $k) { }
561 0 0 unless ($self->{'reduced'})
577 2 4 if ($y % $half_k) { }
579 0 2 unless ($self->{'reduced'})
598 10 13 if ($diff == 1 and $y < $half_ceil)
606 7 6 if ($t < $half_ceil) { }
612 1 5 if ($k & 1) { }
617 0 1 if ($next_x % $k) { }
618 0 0 unless ($self->{'reduced'})
635 0 5 if ($x % $half_k) { }
637 0 0 unless ($self->{'reduced'})
658 0 36 if ($self->{'digit_order'} ne 'HtoL')
670 0 36 if ($nx != $orig_x or $ny != $orig_y)
689 0 72 if $x1 > $x2
690 0 72 if $y1 > $y2
692 0 72 if ($x2 < 1 or $y2 < 1)
697 0 72 if ($self->{'points'} eq 'all_div')
702 18 54 $self->{'reduced'} || $self->{'k'} == 2 ? :
722 0 0 unless ($n >= $n_start)
731 0 0 $n >= $self->{'n_start'} ? :
748 0 0 unless ($n >= $k)
759 0 0 unless ($n >= 1)
768 0 0 $depth >= 0 ? :
787 0 0 $n >= 1 ? :