Condition Coverage

blib/lib/Math/BigInt/Calc.pm
Criterion Covered Total %
condition 149 235 63.4


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 62 defined $base_len and $base_len == int $base_len
0 0 62 defined $base_len and $base_len == int $base_len and $base_len > 0
101 1 61 0 $use_int and $base_len > $MAX_EXP_I
61 1 0 not $use_int and $base_len > $MAX_EXP_F
151 73 0 0 $AND_BITS < $MAX_BITS and $x == $z
73 0 0 $AND_BITS < $MAX_BITS and $x == $z and $y == $x
158 73 0 0 $XOR_BITS < $MAX_BITS and $x == $z
73 0 0 $XOR_BITS < $MAX_BITS and $x == $z and $y == $x
165 73 0 0 $OR_BITS < $MAX_BITS and $x == $z
73 0 0 $OR_BITS < $MAX_BITS and $x == $z and $y == $x
347 0 0 2 defined $param and length $param
428 8630 39781 6871 @$y == 1 and $y->[0] == 0
432 8027 33045 7339 @$x == 1 and $x->[0] == 0
477 775 53 3 $x->[-1] == 0 and @$x > 1
548 9362 2243 271 @$xv == 1 and $xv->[0] == 0
609 0 0 0 @$xv == 1 and $xv->[0] == 0
647 12296 133 2917 @$x == 1 and @$yorg == 1
675 0 2137 1302 @$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 16191 2337 92147 @$cx == 1 and @$cy == 1
1030 59128 17357 2452 @$x == 1 and $x->[0] == 0
1049 173303 182662 28417 @{$_[1];} == 1 && $_[1][0] == 0
1064 369 4764 1080 @{$_[1];} == 1 && $_[1][0] == 1
1069 13 62 79 @{$_[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 4855 795 642 $#$x > 0 and $i == $#$x
5650 642 0 $#$x > 0 and $i == $#$x and $e == 0
1233 29779 0 0 $src == $xlen and not defined $x->[1]
1258 13529 0 14549 $x->[-1] == 0 and @$x > 1
1331 0 950 64 @$cy == 1 and $cy->[0] == 0
1337 16 908 26 @$cx == 1 and $cx->[0] == 1
0 806 118 @$cy == 1 and $cy->[0] == 1
1343 16 789 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
1816 0 41 0 @$x > 1 || $x->[0] > 0 and $c->_acmp($x, $n) <= 0
2118 15 203 43 @$x == 1 and $x->[0] == 0
2126 41 233 218 @$x1 == 1 and $x1->[0] == 0
2139 19 1076 49 @$x == 1 and $x->[0] == 0
2148 64 1111 1095 @$x1 == 1 and $x1->[0] == 0
2160 18 28 10 @$x == 1 and $x->[0] == 0
2168 38 66 46 @$x1 == 1 and $x1->[0] == 0
2342 0 80 8 @$x == 1 and $x->[0] == 0
2343 0 4 4 @$y == 1 and $y->[0] == 0
2353 0 226 80 @$y == 1 and $y->[0] == 0

or 2 conditions

line l !l condition
493 52227 15150 $sy->[$j] || 0
503 1933 4240 $sy->[$j] || 0
559 9 1682 shift @prod || 0
561 1154606 63872 $prod[$cty] || 0
565 86993 1157 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 62 $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 67247 130 1564 defined $sy->[$j] or $car
976 5802 1199 11527 @$cx - @$cy || length(int $cx->[-1]) - length(int $cy->[-1])
1016 1 1 95 $n < 0 or $n >= $len
1218 0 0 29993 $c->_is_zero($x) or $c->_is_zero($n)
1233 165 0 29779 $src >= $xlen or $src == $xlen and not defined $x->[1]
1266 2413 1519 19451 $c->_is_zero($x) or $c->_is_zero($n)
1337 26 118 806 @$cx == 1 and $cx->[0] == 1 or @$cy == 1 and $cy->[0] == 1
1801 0 0 68 $x->[0] == 0 or $x->[0] == 1
1816 41 0 0 @$x > 1 || $x->[0] > 0
2033 45 21 53 $c->_is_zero($x1) or $c->_is_zero($y1)
2059 89 41 81 $c->_is_zero($x1) or $c->_is_zero($y1)
2094 84 41 80 $c->_is_zero($x1) or $c->_is_zero($y1)