Condition Coverage

blib/lib/Math/Complex.pm
Criterion Covered Total %
condition 78 110 70.9


and 3 conditions

line !l l&&!r l&&r condition
58 0 0 3 defined $i and $i > $BIGGER_THAN_THIS
283 0 0 551 defined $rho and defined $theta
422 755 76 313 $x == 0 and $y == 0
471 358 83 90 $$z1{'p_dirty'} == 0 and ref $z2
441 58 32 $$z1{'p_dirty'} == 0 and ref $z2 and $$z2{'p_dirty'} == 0
522 780 201 2 $$z1{'p_dirty'} == 0 and ref $z2
981 0 2 $$z1{'p_dirty'} == 0 and ref $z2 and $$z2{'p_dirty'} == 0
573 0 0 0 $z2 == 0 and Re($z1) > 0
576 83 0 4 $z1 == 0 and Re($z2) > 0
583 0 83 0 $$z1{'c_dirty'} == 0 && (!ref($z2) || $$z2{'c_dirty'} == 0)
611 1501 64 34 $re1 == $re2 && $im1 == $im2
770 1 2 53 ref $z && $$z{'c_dirty'} == 0
1023 71 0 28 not ref $z and CORE::abs $z <= 1
1027 69 0 2 $x == 1 and $y == 0
1037 21 28 6 $y == 0 and $x < -1
1048 93 1 12 not ref $z and CORE::abs $z <= 1
1052 87 6 1 $x == 0 and $y == 0
1062 31 38 8 $y == 0 and $x < -1
1075 66 7 1 $x == 0 and $y == 0
1266 17 12 5 $re < 0 and $im == 0
1546 4 0 252 $format{'polar_pretty_print'} and $t

or 2 conditions

line l !l condition
186 176 1 $1 || 0
188 1 0 $2 || 0
206 5 1 $2 || 0
208 4 1 $2 || 1
6 0 $3 || 1
258 3560 2931 $im ||= 0
292 487 64 $theta ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
29 0 0 0 $Math::Complex::Config{'nvsize'} || $Math::Complex::Config{'uselongdouble'} && $Math::Complex::Config{'longdblsize'} || $Math::Complex::Config{'doublesize'}
277 0 0 13 $_[0] =~ /^\s*\(/ or $_[0] =~ /i\s*$/
572 0 0 0 $z1 == 0 or $z2 == 1
575 6 4 87 $z2 == 0 or $z1 == 1
765 4 0 56 $n < 1 or int $n != $n
1037 14 0 55 $y > 0 or $y == 0 and $x < -1
1062 16 0 77 $y > 0 or $y == 0 and $x < -1
1374 3 1 36 $im1 or $im2
1503 2516 0 0 $y > 0 or $im =~ /^NaN[QS]?i$/i
1530 0 0 273 $t =~ /^NaN[QS]?$/i or $t =~ /^-?\Q$Inf\E$/io
0 12 256 $r == 0 or $t == 0