Branch Coverage

blib/lib/Math/PlanePath/FactorRationals.pm
Criterion Covered Total %
branch 33 62 53.2


line true false branch
159 64 17 $n % 2 ? :
184 0 0 $n % 2 ? :
235 0 0 if ($n & $bit)
250 0 0 if ($bit)
275 0 1 unless $factor_coding__pos_to_pn{$factor_coding}
285 0 45 if ($n < 1)
286 0 45 if (is_infinite($n))
291 0 45 if ($n != $int)
312 36 33 if ($n % $divisor == 0)
317 36 273 if ($n % $divisor)
322 17 19 if ($pn >= 0) { }
336 0 45 if ($overflow)
345 0 45 if ($pn >= 0) { }
362 625 5045 if ($x < 1 or $y < 1)
365 0 5045 if (is_infinite($x))
366 0 5045 if (is_infinite($y))
368 0 5045 if ($self->{'factor_coding'} eq 'negabinary' or $self->{'factor_coding'} eq 'revbinary') { }
383 0 0 if ($x % $divisor == 0) { }
0 0 elsif ($y % $divisor == 0) { }
384 0 0 if ($y % $divisor == 0)
411 0 0 if ($overflow)
417 0 0 if ($x > 1 and $x == $y)
432 0 5045 if ($self->{'factor_coding'} eq 'odd/even')
449 5598 3751 if $ychop % $divisor
451 2810 941 if ($x % $divisor == 0)
462 0 2235 if ($overflow)
467 1958 277 if ($ychop > 1)
468 183 1775 if ($x % $ychop == 0)
519 0 47 $self->{'factor_coding'} eq 'revbinary' ? :
0 47 $self->{'factor_coding'} eq 'negabinary' ? :
545 1 6066 if ($limit > $cap) { }