Branch Coverage

blib/lib/Lingua/MLT/Num2Word.pm
Criterion Covered Total %
branch 22 40 55.0


line true false branch
28 0 27 if not defined $positive && $positive =~ /\A\d+\z/msux or $positive < 0 or $positive > 999999999
115 2 25 if $positive == 0
137 0 27 if $n == 0
140 0 27 if ($n >= 1000000)
145 0 0 if ($millions == 1) { }
0 0 elsif ($millions == 2) { }
155 0 0 if ($remain)
162 0 27 if ($n >= 1000)
167 0 0 if ($thousands == 1) { }
0 0 elsif ($thousands == 2) { }
0 0 elsif ($thousands >= 3 and $thousands <= 10) { }
181 0 0 if ($remain)
188 6 21 if ($n >= 100)
193 2 4 if ($hundreds == 1) { }
2 2 elsif ($hundreds == 2) { }
203 2 4 if ($remain)
210 5 16 if ($n >= 11 and $n <= 19)
215 1 15 if ($n == 10)
220 9 6 if ($n >= 20)
224 4 5 if ($unit)