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)
85 4 0 unless (defined $self->{'n_start'})
99 0 0 if ($n < 0)
102 0 0 if ($n == 0 or is_infinite($n))
111 0 0 if ($n != $int)
138 0 0 if $_
174 0 7 unless ($x >= 0 and $x <= $y and $y >= 0)
178 0 7 if (is_infinite($y))
191 7 21 if ($depthbits[$i]) { }
195 0 21 if ($xbits[$i])
202 0 7 if ($lowbit)
220 0 0 if ($y1 > $y2)
224 0 0 if ($x1 > $x2)
226 0 0 if ($y2 < 0)
231 0 0 if ($y1 < 0)
249 0 0 if (is_infinite($n) or $n < 0)
254 0 0 unless ($lowbit)
257 0 0 unless (shift @$depthbits)
269 0 0 if (_divrem_mutate($n, 2) != $repbit)
281 0 0 if (is_infinite($n) or $n < 0)
286 0 0 unless ($lowbit)
293 0 0 if (shift @$depthbits) { }
299 0 0 if ($n % 2 != $repbit)
315 0 0 unless my($x, $y) = $self->n_to_xy($n)
318 0 0 if ($x % 2 != $y % 2)
325 0 0 if (defined $n_parent)
335 0 1 unless ($n >= 0)
338 1 0 if (is_infinite($n))
348 8 0 if ($depth >= 0) { }
351 1 7 if (is_infinite($depth))
366 0 0 if (is_infinite($n) or $n < 0)
378 0 0 unless ($depthbits->[$i] ^= 1)
379 0 0 if ((shift @nbits || 0) != $target)
395 0 0 if (is_infinite($n) or $n < 0)
414 0 0 if (shift @$depthbits)
416 0 0 if ($ret)
430 0 0 if (_divrem_mutate($n, 2) != $repbit)
447 0 0 if ($n == 0)
462 0 0 if ($n >= $ndepth + $nwidth) { }
469 0 0 unless --$bitpos >= 0
478 0 0 $n >= $ndepth + $nwidth ? :
479 0 0 if ($lowbit)
496 0 0 if ($n < 0)
497 0 0 if (is_infinite($n))