Branch Coverage

blib/lib/Math/Complex_C.pm
Criterion Covered Total %
branch 24 48 50.0


line true false branch
76 0 1 unless defined $im
78 0 1 if $re =~ /^(\+|\-)?nan/i
79 0 1 if $im =~ /^(\+|\-)?nan/i
81 0 1 if ($re =~ /^(\+|\-)?inf/i)
82 0 0 if ($re =~ /^\-inf/i) { }
86 0 1 if ($im =~ /^(\+|\-)?inf/i)
87 0 0 if ($re =~ /^\-inf/i) { }
98 0 5 if ($real == 0) { }
2 3 elsif ($real != $real) { }
0 3 elsif ($real / $real != $real / $real) { }
99 0 0 $real =~ /^\-/ ? :
105 0 0 $real < 0 ? :
115 0 5 if ($imag == 0) { }
2 3 elsif ($imag != $imag) { }
0 3 elsif ($imag / $imag != $imag / $imag) { }
116 0 0 $imag =~ /^\-/ ? :
122 0 0 $imag < 0 ? :
146 8 64 unless (@_)
148 0 64 if (@_ > 3)
153 11 53 if (not ref $_[0] and $_[0] eq "Math::Complex_C")
155 2 9 unless (@_)
158 0 62 if (@_ > 2)
162 51 11 if (@_ == 2) { }
167 0 11 if _itsa($_[0]) == 226