Branch Coverage

blib/lib/Math/BigInt/Lib.pm
Criterion Covered Total %
branch 88 404 21.7


line true false branch
19 0 0 ref $_[1] ? :
26 0 0 if ($_[2]) { }
28 0 0 ref $_[1] ? :
31 0 0 ref $_[1] ? :
39 0 0 ref $_[1] ? :
46 0 0 if ($_[2]) { }
48 0 0 ref $_[1] ? :
51 0 0 ref $_[1] ? :
59 0 0 if ($_[2]) { }
61 0 0 ref $_[1] ? :
64 0 0 ref $_[1] ? :
72 0 0 if ($_[2]) { }
74 0 0 ref $_[1] ? :
77 0 0 ref $_[1] ? :
85 0 0 if ($_[2]) { }
87 0 0 ref $_[1] ? :
90 0 0 ref $_[1] ? :
98 0 0 if ($_[2]) { }
100 0 0 ref $_[1] ? :
103 0 0 ref $_[1] ? :
113 0 0 if ($_[2]) { }
115 0 0 ref $_[1] ? :
118 0 0 ref $_[1] ? :
126 0 0 if ($_[2]) { }
128 0 0 ref $_[1] ? :
131 0 0 ref $_[1] ? :
139 0 0 if ($_[2]) { }
141 0 0 ref $_[1] ? :
144 0 0 ref $_[1] ? :
152 0 0 if ($_[2]) { }
154 0 0 ref $_[1] ? :
157 0 0 ref $_[1] ? :
165 11605 0 ref $_[1] ? :
172 0 0 ref $_[1] ? :
181 0 0 if ($_[2]) { }
183 0 0 ref $_[1] ? :
186 0 0 ref $_[1] ? :
196 0 0 if ($_[2]) { }
198 0 0 ref $_[1] ? :
201 0 0 ref $_[1] ? :
209 0 0 if ($_[2]) { }
211 0 0 ref $_[1] ? :
214 0 0 ref $_[1] ? :
222 0 0 if ($_[2]) { }
224 0 0 ref $_[1] ? :
227 0 0 ref $_[1] ? :
245 0 0 ref($_[0])->_is_zero($_[0]) ? :
281 0 0 if ref $exp
332 0 0 if $class->_is_zero($y)
342 0 0 if wantarray
366 36480 28644 if ($xs eq $ys)
367 0 36480 if ($flag) { }
372 1923 34557 $class->_is_zero($za) ? :
378 6904 21740 if ($acmp == 0)
384 15783 5957 if ($acmp > 0) { }
402 21521 11426 $ys eq '+' ? :
415 0 0 unless length $xstr <=> length $ystr
450 0 0 $str =~ /[^0](0*)\z/ ? :
498 0 5498 unless defined $x
499 1 5497 unless ref $x
509 0 0 if $class->_is_zero($y)
512 0 0 if ($class->can('_div')) { }
530 0 0 unless ref $b
536 0 0 unless ref $b
544 0 0 if ($class->_is_zero($y))
548 0 0 if ($class->_is_one($x) or $class->_is_one($y))
554 0 0 if ($class->_is_zero($x))
565 0 0 if substr($y_bin, $len, 1) eq 1
582 0 0 if ($class->_acmp($twok, $n) > 0)
597 0 0 if ($class->_is_zero($k))
665 0 0 unless $class->_is_zero($log2n)
667 0 0 if $class->_is_even($h)
683 0 77 if ($class->_acmp($x, $two) < 0)
703 0 0 if $class->_is_zero($x)
705 0 0 unless defined $base
706 0 0 unless ref $base
709 0 0 if $class->_is_zero($base) or $class->_is_one($base)
712 0 0 if ($class->_is_one($x))
719 0 0 if ($cmp == 0)
724 0 0 if ($cmp < 0)
750 0 0 if $acmp == 0
768 0 0 if $acmp == 0
776 0 0 if $class->_is_zero($y)
785 0 0 if ($y_len % 2 == 0) { }
798 0 0 if ($xe < 0) { }
820 0 0 if $acmp != 0
826 0 0 if ($acmp < 0)
834 0 0 unless ($class->_is_zero($delta))
851 0 0 if $class->_is_zero($delta)
874 0 0 if $class->_is_zero($y) or $class->_is_one($y) or $class->_is_one($n)
879 0 0 if $class->_acmp($y, $n) <= 0
919 0 0 if ($DEBUG)
930 0 0 $xe < 15 ? :
934 0 0 if ($DEBUG)
951 0 0 $xm > $xm_int ? :
956 0 0 if ($DEBUG)
979 0 0 if ($DEBUG)
991 0 0 if ($acmp < 0)
999 0 0 if ($DEBUG)
1006 0 0 unless ($class->_is_zero($delta))
1012 0 0 if ($DEBUG)
1032 0 0 if ($DEBUG)
1039 0 0 if ($DEBUG)
1043 0 0 if $class->_is_zero($delta)
1050 0 0 if ($DEBUG)
1078 0 0 if $class->_acmp($x, $y) == 0
1103 0 0 if $class->_acmp($x, $y) == 0
1126 0 0 unless $class->_is_zero($xc)
1128 0 0 unless $class->_is_zero($yc)
1137 0 0 if $class->_acmp($x, $y) == 0
1160 0 0 unless $class->_is_zero($xc)
1162 0 0 unless $class->_is_zero($yc)
1171 0 33 if $class->_is_zero($x) or $class->_is_zero($y)
1174 16 17 $sx eq '-' && $sy eq '-' ? :
1178 24 9 if ($sx eq '-') { }
1193 25 8 if ($sy eq '-') { }
1213 24 9 if $sx eq "-"
1214 25 8 if $sy eq "-"
1216 9 24 if ($diff > 0) { }
0 24 elsif ($diff < 0) { }
1233 16 17 if ($sign eq '-') { }
1245 16 17 if $sign eq "-"
1248 4 29 if $class->_is_zero($bx)
1256 0 40 if $class->_is_zero($x) and $class->_is_zero($y)
1259 24 16 $sx ne $sy ? :
1263 27 13 if ($sx eq '-') { }
1278 29 11 if ($sy eq '-') { }
1298 27 13 if $sx eq "-"
1299 29 11 if $sy eq "-"
1301 9 31 if ($diff > 0) { }
3 28 elsif ($diff < 0) { }
1318 24 16 if ($sign eq '-') { }
1330 24 16 if $sign eq "-"
1333 8 32 if $class->_is_zero($bx)
1341 0 35 if $class->_is_zero($x) and $class->_is_zero($y)
1344 35 0 $sx eq '-' || $sy eq '-' ? :
1348 23 12 if ($sx eq '-') { }
1363 24 11 if ($sy eq '-') { }
1383 23 12 if $sx eq "-"
1384 24 11 if $sy eq "-"
1386 12 23 if ($diff > 0) { }
3 20 elsif ($diff < 0) { }
1403 35 0 if ($sign eq '-') { }
1415 35 0 if $sign eq "-"
1418 0 35 if $class->_is_zero($bx)
1434 93 8 unless ($class->_is_zero($tmp))
1437 93 8 length $str ? :
1451 40 8 unless ($class->_is_zero($tmp))
1454 40 8 length $str ? :
1468 32 8 unless ($class->_is_zero($tmp))
1471 32 8 length $str ? :
1504 0 0 length $str ? :
1514 0 0 unless ref $base
1517 0 0 if (@_) { }
1519 0 0 unless defined $collseq and length $collseq
1522 0 0 if ($class->_acmp($base, $class->_new('94')) <= 0) { }
1543 0 0 if $num > $#collseq
1548 0 0 unless length $str
1557 0 0 unless ref $base
1559 0 0 unless $class->_acmp($base, $two) >= 0
1572 0 0 unless ($class->_is_zero($xcopy))
1577 0 0 unless @$out
1598 0 0 if $rem == $len
1627 0 0 if $rem == $len
1656 0 0 if $rem == $len
1689 0 0 unless ref $base
1695 0 0 if (@_) { }
1698 0 0 if ($class->_acmp($base, $class->_new('36')) <= 0) { }
0 0 elsif ($class->_acmp($base, $class->_new('94')) <= 0) { }
1723 0 0 if exists $collseq{$chr}
1730 0 0 unless exists $collseq{$chr}
1744 0 0 unless ref $base
1746 0 0 unless $class->_acmp($base, $two) >= 0
1752 0 0 unless ref $ele
1758 0 0 unless ref $ele
1773 0 0 if ($class->_is_zero($y))
1778 0 0 if ($class->_is_one($y))
1793 0 0 if $class->_is_zero($b)
1804 0 0 unless $class->_is_one($a)
1806 0 0 $sign == 1 ? :
1814 0 0 if ($class->_is_one($mod))
1820 0 0 if ($class->_is_zero($num))
1821 0 0 $class->_is_zero($exp) ? :
1835 0 0 if (substr($expbin, $len, 1) eq 1)
1853 0 0 if ($class->_acmp($x, $y) == 0)
1857 0 0 if ($class->_is_zero($x)) { }
1858 0 0 if ($class->_is_zero($y)) { }
1864 0 0 if ($class->_is_zero($y)) { }
1896 12 14 if $class->_is_zero($x) or $class->_is_zero($y)
1909 0 0 if ref $n
1913 0 0 if (wantarray)
1917 0 0 if $n == 0
1920 0 0 if $n == 1
1934 0 0 if $n == 0
1943 0 0 if ref $n
1947 0 0 if (wantarray)
1951 0 0 if $n == 0
1954 0 0 if $n == 1
1972 0 0 if $n <= 0
1973 0 0 if $n <= 2
1974 0 0 if exists $cache->{$n}
1981 0 0 if ($n % 2 == 1) { }