Branch Coverage

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


line true false branch
68 26971 38961 if ($n < $base)
74 9 38952 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 38952 if ($n < $pow) { }
15 38937 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 16151 250550 unless $n
204 4676 245874 if ($radix == 2)
209 19 245855 if (ref $n and $n->isa('Math::BigInt')) { }
210 10 9 if (my $coderef = $bigint_coderef[$radix])
218 9 0 if ($radix < 1000000)
242 19050 473 if ($n >= 1)
243 10 19040 if (ref $n and $n->isa('Math::BigInt'))
247 19039 1 if ($n <= 1.8446744073709552e+19)
272 120297 11719 defined $zero ? :