Branch Coverage

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


line true false branch
51 42 36 $prefix_mode ? :
54 4 74 unless (defined $num)
58 8 66 unless (looks_like_number $num)
62 8 58 if ($num == 0)
63 6 2 if ($prefix_mode or $no_e_zero) { }
71 9 49 $num < 0 ? :
74 33 25 if ($prefix_mode)
75 4 29 if ($num >= 1e+27 or $num <= 1e-25)
84 29 29 if ($prefix_mode) { }
88 8 21 if ($no_e_zero and $e == 0) { }
99 2 56 if ($num < 1) { }
2 54 elsif ($num < 10 and $num > 9.999999999) { }
3 51 elsif ($num < 100 and $num > 99.99999999) { }
117 2 43 unless (defined $num)
126 2 41 unless (length $num)
132 26 15 if (exists $exponent{$prefix}) { }
134 2 24 unless (looks_like_number $num)
140 4 11 unless (looks_like_number $num)