Branch Coverage

blib/lib/Lingua/LIT/Num2Word.pm
Criterion Covered Total %
branch 2 70 2.8


line true false branch
43 0 0 if ($last_two >= 10 and $last_two <= 19)
48 0 0 if ($last_one == 1)
53 0 0 if ($last_one == 0)
69 0 0 if ($h == 1)
83 0 2 if not defined $number && $number =~ /\A\d+\z/msux or $number < 0 or $number > 999999999
90 2 0 if ($number < 20)
95 0 0 if ($number < 100)
98 0 0 if ($remainder != 0)
105 0 0 if ($number < 1000)
108 0 0 if ($remainder != 0)
115 0 0 if ($number < 1000000)
120 0 0 if ($thousands == 1) { }
0 0 elsif ($thousands < 20) { }
130 0 0 if ($remainder != 0)
137 0 0 if ($number < 1000000000)
142 0 0 if ($millions == 1) { }
0 0 elsif ($millions < 20) { }
152 0 0 if ($remainder != 0)
169 0 0 if not defined $number && $number =~ /\A\d+\z/msux or $number < 1 or $number > 999999999
198 0 0 if exists $ordinals{$number}
212 0 0 if exists $ordinal_tens{$number}
215 0 0 if ($number > 20 and $number < 100)
222 0 0 if ($number >= 100 and $number < 1000 and $number % 100 == 0)
224 0 0 if ($h == 1)
231 0 0 if ($number >= 100 and $number < 1000)
237 0 0 if ($number >= 1000 and $number < 1000000 and $number % 1000 == 0)
239 0 0 if ($thousands == 1)
246 0 0 if ($number >= 1000 and $number < 1000000)
252 0 0 if ($thousands == 1) { }
0 0 elsif ($thousands < 20) { }
265 0 0 if ($number >= 1000000 and $number < 1000000000 and $number % 1000000 == 0)
267 0 0 if ($millions == 1)
274 0 0 if ($number >= 1000000 and $number < 1000000000)
280 0 0 if ($millions == 1) { }
0 0 elsif ($millions < 20) { }