Branch Coverage

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


line true false branch
29 0 2 if not defined $positive && $positive =~ /\A\d+\z/msux or $positive < 0 or $positive > 999999999
37 2 0 if $positive >= 0 and $positive < 10
38 0 0 if $positive == 10
39 0 0 if $positive > 10 and $positive < 20
44 0 0 if ($positive > 19 and $positive < 100) { }
0 0 elsif ($positive == 100) { }
0 0 elsif ($positive > 100 and $positive < 1000) { }
0 0 elsif ($positive >= 1000 and $positive < 1000000) { }
0 0 elsif ($positive >= 1000000 and $positive < 1000000000) { }
49 0 0 if $remain
58 0 0 $hundreds == 1 ? :
59 0 0 if $remain
65 0 0 $thousands == 1 ? :
66 0 0 if $remain
72 0 0 if ($millions == 1) { }
78 0 0 if $remain
91 0 0 if not defined $number && $number =~ /\A\d+\z/msux or $number < 1 or $number > 999999999
132 0 0 if $number >= 1 and $number <= 9
135 0 0 if $number == 10
138 0 0 if ($number > 10 and $number < 20)
156 0 0 if ($number >= 20 and $number < 100)
160 0 0 if ($remain == 0)
169 0 0 if ($number >= 100 and $number < 1000)
173 0 0 if ($remain == 0)
174 0 0 if $hundreds == 1
179 0 0 $hundreds == 1 ? :
185 0 0 if ($number >= 1000 and $number < 1000000)
189 0 0 if ($remain == 0)
190 0 0 if $thousands == 1
195 0 0 $thousands == 1 ? :
201 0 0 if ($number >= 1000000 and $number < 1000000000)
205 0 0 if ($remain == 0)
206 0 0 if $millions == 1
211 0 0 if ($millions == 1) { }
233 0 0 if $n >= 1 and $n <= 9