Branch Coverage

blib/lib/Math/PlanePath/ToothpickUpist.pm
Criterion Covered Total %
branch 13 90 14.4


line true false branch
44 0 7 if (ref $_[0] and $_[0]->isa('Math::BigInt')) { }
46 0 0 if (not ref $d or $d < 1000000)
84 4 0 unless (defined $$self{'n_start'})
98 0 0 if ($n < 0)
101 0 0 if ($n == 0 or is_infinite($n))
110 0 0 if ($n != $int)
137 0 0 if $_
173 0 7 unless ($x >= 0 and $x <= $y and $y >= 0)
177 0 7 if (is_infinite($y))
190 7 21 if ($depthbits[$i]) { }
194 0 21 if ($xbits[$i])
201 0 7 if ($lowbit)
219 0 0 if ($y1 > $y2)
223 0 0 if ($x1 > $x2)
225 0 0 if ($y2 < 0)
230 0 0 if ($y1 < 0)
248 0 0 if (is_infinite($n) or $n < 0)
253 0 0 unless ($lowbit)
256 0 0 unless (shift @$depthbits)
268 0 0 if (_divrem_mutate($n, 2) != $repbit)
280 0 0 if (is_infinite($n) or $n < 0)
285 0 0 unless ($lowbit)
292 0 0 if (shift @$depthbits) { }
298 0 0 if ($n % 2 != $repbit)
314 0 0 unless my($x, $y) = $self->n_to_xy($n)
317 0 0 if ($x % 2 != $y % 2)
324 0 0 if (defined $n_parent)
334 0 1 unless ($n >= 0)
337 1 0 if (is_infinite($n))
347 8 0 if ($depth >= 0) { }
350 1 7 if (is_infinite($depth))
365 0 0 if (is_infinite($n) or $n < 0)
377 0 0 unless ($$depthbits[$i] ^= 1)
378 0 0 if ((shift @nbits || 0) != $target)
394 0 0 if (is_infinite($n) or $n < 0)
413 0 0 if (shift @$depthbits)
415 0 0 if ($ret)
429 0 0 if (_divrem_mutate($n, 2) != $repbit)
446 0 0 if ($n == 0)
461 0 0 if ($n >= $ndepth + $nwidth) { }
468 0 0 unless --$bitpos >= 0
477 0 0 $n >= $ndepth + $nwidth ? :
478 0 0 if ($lowbit)
495 0 0 if ($n < 0)
496 0 0 if (is_infinite($n))