Branch Coverage

blib/lib/Math/Rational/Approx.pm
Criterion Covered Total %
branch 18 22 81.8


line true false branch
46 2 24 unless 4 == @$bounds
52 2 22 unless $a / $b < $c / $d
56 2 20 unless $a / $b < $x and $x < $c / $d
74 18 20 if (defined $bounds and @$bounds) { }
95 5 256 if ($x == $mediant) { }
108 148 elsif ($x > $mediant) { }
97 0 0 $d > $b ? :
5 0 $b + $d <= $maxD ? :
119 30 0 unless (defined $nom or defined $denom)
120 19 11 $b > $maxD ? :
156 5 53 if ($x - $int)->bfround(-10)->is_zero