Branch Coverage

blib/lib/Math/PlanePath/PeanoCurve.pm
Criterion Covered Total %
branch 30 62 48.3


line true false branch
86 0 0 $self->{'radix'} % 2 ? :
92 0 0 $self->{'radix'} % 2 ? :
100 0 0 $self->{'radix'} % 2 ? :
127 0 0 $self->{'radix'} % 2 ? :
139 0 0 $self->{'radix'} == 2 ? :
148 6 1 if (not $self->{'radix'} or $self->{'radix'} < 2)
157 0 5 if ($n < 0)
160 0 5 if (is_infinite($n))
170 1 4 if ($n != $int)
182 0 4 unless my(@ndigits) = digit_split_lowtohigh($n, $radix)
202 385 5 $yk & 1 ? :
204 0 390 unless @ndigits
208 2 388 $xk & 1 ? :
255 0 1 if ($x < 0 or $y < 0)
258 0 1 if (is_infinite($x))
261 0 1 if (is_infinite($y))
282 0 0 if ($yk & 1)
290 0 0 if ($xk & 1)
308 0 1 if $x1 > $x2
309 0 1 if $y1 > $y2
312 0 1 if ($x2 < 0 or $y2 < 0)
319 0 1 if (is_infinite($level))
345 1 4 if ($ck & 1)
361 1 1 if &$overlap($max_y, $max_yk, $digit, $y1, $y2)
365 0 1 if ($max_yk & 1)
374 1 0 if &$overlap($min_y, $min_yk, $digit, $y1, $y2)
378 0 1 if ($min_yk & 1)
389 1 0 if &$overlap($max_x, $max_xk, $digit, $x1, $x2)
393 1 0 if ($max_xk & 1)
402 1 0 if &$overlap($min_x, $min_xk, $digit, $x1, $x2)
406 0 1 if ($min_xk & 1)