Branch Coverage

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


line true false branch
51 47 40 $prefix_mode ? :
54 4 83 unless (defined $num)
58 8 75 unless (&looks_like_number($num))
62 8 67 if ($num == 0)
63 6 2 if ($prefix_mode or $no_e_zero) { }
71 11 56 $num < 0 ? :
74 38 29 if ($prefix_mode)
75 5 33 if ($num >= 1e+27 or $num <= 1e-25)
85 33 34 if ($prefix_mode) { }
89 9 25 if ($no_e_zero and $e == 0) { }
102 2 44 unless (defined $num)
111 2 42 unless (length $num)
117 26 16 if (exists $exponent{$prefix}) { }
119 2 24 unless (&looks_like_number($num))
125 4 12 unless (&looks_like_number($num))