Branch Coverage

blib/lib/Number/FormatEng.pm
Criterion Covered Total %
branch 30 30 100.0


line true false branch
51 46 40 $prefix_mode ? :
54 4 82 unless (defined $num)
58 8 74 unless (&looks_like_number($num))
62 8 66 if ($num == 0)
63 6 2 if ($prefix_mode or $no_e_zero) { }
71 11 55 $num < 0 ? :
74 37 29 if ($prefix_mode)
75 5 32 if ($num >= 1e+27 or $num <= 1e-25)
92 32 34 if ($prefix_mode) { }
96 9 25 if ($no_e_zero and $e == 0) { }
109 2 44 unless (defined $num)
118 2 42 unless (length $num)
124 26 16 if (exists $exponent{$prefix}) { }
126 2 24 unless (&looks_like_number($num))
132 4 12 unless (&looks_like_number($num))