Branch Coverage

blib/lib/Math/PlanePath/Base/Digits.pm
Criterion Covered Total %
branch 40 44 90.9


line true false branch
68 26975 39003 if ($n < $base)
74 9 38994 if (ref $n)
75 0 9 if ($n->isa('Math::BigRat'))
78 7 2 if ($n->isa('Math::BigInt') or $n->isa('Math::BigInt::Lite'))
96 2 38994 if ($n < $pow) { }
15 38979 elsif ($n >= $base * $pow) { }
120 1 117 if ($n < 1)
126 5 112 if (ref $n)
128 0 5 if ($n->isa('Math::BigRat'))
131 5 0 if ($n->isa('Math::BigInt') or $n->isa('Math::BigInt::Lite'))
138 3 2 if ($n > $pow)
156 28 84 if ($exp > 0 and $n <= $pow / $base) { }
1 83 elsif ($n > $pow) { }
203 16192 344473 unless $n
204 4740 339733 if ($radix == 2)
209 19 339714 if (ref $n and $n->isa('Math::BigInt')) { }
210 10 9 if (my $coderef = $bigint_coderef[$radix])
218 9 0 if ($radix < 1000000)
242 19072 462 if ($n >= 1)
243 10 19062 if (ref $n and $n->isa('Math::BigInt'))
247 19061 1 if ($n <= 1.8446744073709552e+19)
272 242231 21337 defined $zero ? :