Condition Coverage

blib/lib/Math/BigInt/Calc.pm
Criterion Covered Total %
condition 151 259 58.3


and 3 conditions

line !l l&&!r l&&r condition
57 0 0 0 defined $param and length $param
69 0 0 0 defined $param and length $param
97 0 0 57 defined $base_len and $base_len == int $base_len
0 0 57 defined $base_len and $base_len == int $base_len and $base_len > 0
101 1 56 0 $use_int and $base_len > $MAX_EXP_I
56 1 0 not $use_int and $base_len > $MAX_EXP_F
151 68 0 0 $AND_BITS < $MAX_BITS and $x == $z
68 0 0 $AND_BITS < $MAX_BITS and $x == $z and $y == $x
158 68 0 0 $XOR_BITS < $MAX_BITS and $x == $z
68 0 0 $XOR_BITS < $MAX_BITS and $x == $z and $y == $x
165 68 0 0 $OR_BITS < $MAX_BITS and $x == $z
68 0 0 $OR_BITS < $MAX_BITS and $x == $z and $y == $x
347 0 0 2 defined $param and length $param
428 8973 45437 7326 @$y == 1 and $y->[0] == 0
432 8381 37137 8892 @$x == 1 and $x->[0] == 0
477 674 53 3 $x->[-1] == 0 and @$x > 1
548 10792 1886 269 @$xv == 1 and $xv->[0] == 0
609 0 0 0 @$xv == 1 and $xv->[0] == 0
647 15251 150 9003 @$x == 1 and @$yorg == 1
675 0 2793 1408 @$x > 1 and $x->[-1] == 0
807 0 0 0 @$x == 1 and @$yorg == 1
831 0 0 0 @$x > 1 and $x->[-1] == 0
972 17807 2014 107038 @$cx == 1 and @$cy == 1
1030 64805 17895 2476 @$x == 1 and $x->[0] == 0
1049 181207 193279 25626 @{$_[1];} == 1 && $_[1][0] == 0
1064 230 12550 17913 @{$_[1];} == 1 && $_[1][0] == 1
1069 13 71 85 @{$_[1];} == 1 && $_[1][0] == 2
1075 0 0 0 @{$_[1];} == 2 && $_[1][0] == 0 && $_[1][1] == 1
1077 0 1 1 @{$_[1];} == 1 && $_[1][0] == 10
1148 7266 1029 839 $x->$#* > 0 and $i == $x->$#*
8295 839 0 $x->$#* > 0 and $i == $x->$#* and $e == 0
1233 33817 0 0 $src == $xlen and not defined $x->[1]
1258 16044 0 15808 $x->[-1] == 0 and @$x > 1
1331 0 1220 120 @$cy == 1 and $cy->[0] == 0
1337 16 1079 125 @$cx == 1 and $cx->[0] == 1
0 976 119 @$cy == 1 and $cy->[0] == 1
1343 16 959 1 @$cx == 1 and $cx->[0] == 0
1468 16 0 55 $cx->[0] >= 12 and $cx->[0] < 7000
0 0 71 @$cx == 1 and ($cx->[0] >= 12 and $cx->[0] < 7000)
1515 55 227 366 $j <= $i and $m < $BASE2
282 0 366 $j <= $i and $m < $BASE2 and $k2 - $sum < $BASE2
1546 0 16 136 $r * $cf < $BASE and $step < $steps
1551 0 0 16 @$cx == 1 and $step == $cx->[0]
1605 0 0 0 $step < $n4 and $step < $base_4
1619 0 0 0 $step < $n2 and $step < $base_2
1649 32 53 0 @$x == 1 and $x->[0] == 0
1652 1 84 0 @$base == 1 and $base->[0] < 2
1655 32 53 0 @$x == 1 and $x->[0] == 1
1736 0 0 0 @$x == 1 and $x->[0] == 0
1739 0 0 0 @$x == 1 and $x->[0] == 1
1760 0 0 0 $is_pow10 &&= $x_orig->[-1] == 10 ** int("0.5" + log($x_orig->[-1]) / "2.30258509299405")
1773 0 0 0 @$x == 1 and $x->[0] == 0
1777 0 0 0 @$x == 1 and $x->[0] == 1
1836 0 0 0 @$x == 1 and $x->[0] == 0
1839 0 0 0 @$x == 1 and $x->[0] == 1
1856 0 0 0 $is_pow10 &&= $x->[-1] == 10 ** int("0.5" + log($x->[-1]) / "2.30258509299405")
1966 0 43 0 @$x > 1 || $x->[0] > 0 and $c->_acmp($x, $n) <= 0
2268 15 205 43 @$x == 1 and $x->[0] == 0
2276 41 235 220 @$x1 == 1 and $x1->[0] == 0
2289 16 1046 10 @$x == 1 and $x->[0] == 0
2298 34 1078 1062 @$x1 == 1 and $x1->[0] == 0
2310 18 30 10 @$x == 1 and $x->[0] == 0
2318 38 68 48 @$x1 == 1 and $x1->[0] == 0
2493 153 3937 17 @$x == 1 and $x->[0] == 0
2494 0 13 4 @$y == 1 and $y->[0] == 0
2504 1316 9539 4090 @$y == 1 and $y->[0] == 0

or 2 conditions

line l !l condition
493 56954 14532 $sy->[$j] || 0
503 2108 5603 $sy->[$j] || 0
559 5 1587 shift @prod || 0
561 739488 64400 $prod[$cty] || 0
565 55980 992 shift @prod || 0
620 0 0 shift @prod || 0
622 0 0 $prod[$cty] || 0
628 0 0 shift @prod || 0

or 3 conditions

line l !l&&r !l&&!r condition
75 0 0 0 $param eq "base_len" or $param eq "use_int"
101 0 0 57 $use_int and $base_len > $MAX_EXP_I or not $use_int and $base_len > $MAX_EXP_F
353 1 1 0 $param eq "base_len" or $param eq "use_int"
492 71346 140 1546 defined $sy->[$j] or $car
976 5002 1508 13311 @$cx - @$cy || length(int $cx->[-1]) - length(int $cy->[-1])
1016 1 5 135 $n < 0 or $n >= $len
1218 0 0 34030 $c->_is_zero($x) or $c->_is_zero($n)
1233 164 0 33817 $src >= $xlen or $src == $xlen and not defined $x->[1]
1266 92 1150 20692 $c->_is_zero($x) or $c->_is_zero($n)
1337 125 119 976 @$cx == 1 and $cx->[0] == 1 or @$cy == 1 and $cy->[0] == 1
1951 0 0 69 $x->[0] == 0 or $x->[0] == 1
1966 43 0 0 @$x > 1 || $x->[0] > 0
2183 271 51 249 $c->_is_zero($x1) or $c->_is_zero($y1)
2209 315 71 277 $c->_is_zero($x1) or $c->_is_zero($y1)
2244 310 71 276 $c->_is_zero($x1) or $c->_is_zero($y1)