Branch Coverage

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


line true false branch
68 26990 38977 if ($n < $base)
74 9 38968 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 38968 if ($n < $pow) { }
15 38953 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 16245 345300 unless $n
204 4741 340559 if ($radix == 2)
209 19 340540 if (ref $n and $n->isa('Math::BigInt')) { }
210 10 9 if (my $coderef = $bigint_coderef[$radix])
218 9 0 if ($radix < 1000000)
242 19114 476 if ($n >= 1)
243 10 19104 if (ref $n and $n->isa('Math::BigInt'))
247 19103 1 if ($n <= 1.8446744073709552e+19)
272 242252 21337 defined $zero ? :