Branch Coverage

blib/lib/Math/Complex_C/Q.pm
Criterion Covered Total %
branch 22 48 45.8


line true false branch
78 0 1 unless defined $im
80 0 1 if $re =~ /^(\+|\-)?nan/i
81 0 1 if $im =~ /^(\+|\-)?nan/i
83 0 1 if ($re =~ /^(\+|\-)?inf/i)
84 0 0 if ($re =~ /^\-inf/i) { }
88 0 1 if ($im =~ /^(\+|\-)?inf/i)
89 0 0 if ($re =~ /^\-inf/i) { }
100 0 7 if ($real == 0) { }
4 3 elsif ($real != $real) { }
0 3 elsif ($real / $real != $real / $real) { }
101 0 0 $real =~ /^\-/ ? :
107 0 0 $real < 0 ? :
117 0 7 if ($imag == 0) { }
4 3 elsif ($imag != $imag) { }
0 3 elsif ($imag / $imag != $imag / $imag) { }
118 0 0 $imag =~ /^\-/ ? :
124 0 0 $imag < 0 ? :
148 9 54 unless (@_)
150 0 54 if (@_ > 3)
155 10 44 if (not ref $_[0] and $_[0] eq 'Math::Complex_C::Q')
157 2 8 unless (@_)
160 0 52 if (@_ > 2)
164 52 0 if (@_ == 2) { }
169 0 0 if _itsa($_[0]) == 226