Branch Coverage

lib/Math/Big.pm
Criterion Covered Total %
branch 93 150 62.0


line true false branch
38 0 16 unless defined $end
39 0 16 if ref($end) =~ /^Math::Big/
40 0 0 !wantarray ? :
0 16 if ($end < 2)
41 0 0 !wantarray ? :
0 16 if ($end < 3)
42 2 1 !wantarray ? :
3 13 if ($end < 5)
44 8 5 unless $end & 1
48 0 13 if $whole > 1145324612
59 1 12 unless wantarray
65 33 11 if $n <= $end
72 0 22 unless defined $n
74 0 22 if (ref $n) { }
76 0 0 if $n->sign ne '+'
80 0 22 if $n < 0
85 6 16 if (wantarray)
89 0 6 if ref $n
136 0 16 if ref $x
137 14 2 if $x < @F
176 2 0 if ($x % 1 == 0)
194 8 11 if (($f & 1) == 0) { }
200 1 7 unless (exists $fibo[$level - 1]{$t})
204 1 0 if $t + 1 >= @F
207 2 6 unless (exists $fibo[$level - 1]{$t})
211 1 1 if $t + 1 >= @F
220 7 4 if $t + 1 >= @F
242 8 14 if ($f & 1) == 0
253 14 8 if ($f & 1) != 0
266 7 0 unless ref $number
267 7 0 unless ref $base
269 0 7 if $number < $base
286 10 0 unless ref $x
288 1 9 if $x->is_zero
291 0 9 unless defined $base
292 0 9 $alphabet ? :
294 0 9 if ($base > scalar @digits)
300 0 9 unless ($x->is_pos)
325 11 0 unless ref $n
327 0 11 if $n->is_nan or $n->is_negative
337 4 7 if (wantarray)
346 19 28 if ($lib->_is_odd($n))
369 18 29 if ($lib->_is_odd($n))
388 0 7 if (ref $n) { }
410 0 61 if $n < 0
428 2 59 if ($n < 2) { }
20 39 elsif (($n & 1) == 1) { }
39 0 elsif ($n <= 40) { }
447 0 0 if $n > 40
449 61 0 wantarray ? :
460 4 0 unless ref $x and $x->isa('Math::BigFloat')
472 0 8 unless defined $x
475 8 0 if ref $x ne 'Math::BigFloat'
491 22 24 if ($sign == 0) { }
514 0 8 unless defined $x
517 8 0 if ref $x ne 'Math::BigFloat'
533 24 28 if ($sign == 0) { }
556 0 3 unless defined $x
559 3 0 if ref $x ne 'Math::BigFloat'
594 1 18 if $b > 40
606 0 2 unless defined $x
609 2 0 if ref $x ne 'Math::BigFloat'
638 0 0 unless defined $x
641 0 0 if ref $x ne 'Math::BigFloat'
670 0 8 unless defined $x
673 4 4 if ref $x ne 'Math::BigFloat'
689 42 43 if ($sign == 0) { }
711 0 2 unless defined $x
714 2 0 if ref $x ne 'Math::BigFloat'
743 0 4 unless defined $x
746 4 0 if ref $x ne 'Math::BigFloat'
780 0 2 unless defined $x
783 2 0 if ref $x ne 'Math::BigFloat'
800 0 0 if ($sign == 0) { }
823 5 0 if (not ref $x && $x->isa('Math::BigFloat')) { }