Branch Coverage

blib/lib/Math/Big.pm
Criterion Covered Total %
branch 63 108 58.3


line true false branch
37 0 16 unless defined $end
38 0 16 if ref($end) =~ /^Math::Big/
39 0 0 !wantarray ? :
0 16 if ($end < 2)
40 0 0 !wantarray ? :
0 16 if ($end < 3)
41 2 1 !wantarray ? :
3 13 if ($end < 5)
43 8 5 unless $end & 1
47 0 13 if $whole > 1145324612
58 1 12 unless wantarray
64 33 11 if $n <= $end
72 22 0 unless ref $x and $x->isa("Math::BigInt")
81 7 0 unless ref $number
82 7 0 unless ref $base
84 0 7 if $number < $base
99 10 0 unless ref $x and $x->isa("Math::BigInt")
110 11 0 unless ref $n
112 0 11 if $n->is_nan or $n->is_negative
122 4 7 if (wantarray)
131 19 28 if ($lib->_is_odd($n))
154 18 29 if ($lib->_is_odd($n))
173 0 7 if (ref $n) { }
195 0 61 if $n < 0
213 2 59 if ($n < 2) { }
20 39 elsif (($n & 1) == 1) { }
39 0 elsif ($n <= 40) { }
232 0 0 if $n > 40
234 61 0 wantarray ? :
245 4 0 unless ref $x and $x->isa("Math::BigFloat")
257 0 8 unless defined $x
260 8 0 if ref $x ne "Math::BigFloat"
276 22 24 if ($sign == 0) { }
299 0 8 unless defined $x
302 8 0 if ref $x ne "Math::BigFloat"
318 24 28 if ($sign == 0) { }
341 0 3 unless defined $x
344 3 0 if ref $x ne "Math::BigFloat"
379 1 18 if $b > 40
391 0 2 unless defined $x
394 2 0 if ref $x ne "Math::BigFloat"
423 0 0 unless defined $x
426 0 0 if ref $x ne "Math::BigFloat"
455 0 8 unless defined $x
458 4 4 if ref $x ne "Math::BigFloat"
474 42 43 if ($sign == 0) { }
496 0 2 unless defined $x
499 2 0 if ref $x ne "Math::BigFloat"
528 0 4 unless defined $x
531 4 0 if ref $x ne "Math::BigFloat"
565 0 2 unless defined $x
568 2 0 if ref $x ne "Math::BigFloat"
585 0 0 if ($sign == 0) { }
608 5 0 if (not ref $x && $x->isa('Math::BigFloat')) { }