Branch Coverage

blib/lib/Lingua/EUS/Num2Word.pm
Criterion Covered Total %
branch 46 52 88.4


line true false branch
85 5 313 unless ($num =~ /^\d+$/u)
90 1 312 if ($num > '999999999999' or $num < 0)
96 2 310 if $num == 0
97 70 240 if $num2alpha{$num}
109 112 54 unless $extra_digits == 1
114 100 66 unless $num =~ /000$/u
117 32 134 if $len == 7 and $extra_digits == 1
121 22 22 if ($len <= 8 and $len >= 7 and $whats_left != 0 and not reverse($num) =~ /^[^0]000/u)
129 78 88 if (length $num <= 6)
133 18 26 if ($hundreds != 0 and $tens == 0 and $units == 0 or $hundreds == 0 and $tens || $units and not $num =~ /^0/u or $thousands == 0 and $hundreds == 0 and $tens || $units)
149 240 0 if ($len <= 3)
168 0 352 if $num > 999 or $num < 0
169 96 256 if $num == 0
170 42 214 if $num2alpha{$num}
175 152 62 if ($len == 2)
182 62 0 if ($len == 3)
184 28 34 unless ($hundreds == 0)
187 28 0 if $tens or $units
210 0 214 if $num == 0
212 22 192 if $num2alpha{$num}
214 38 154 unless $diz
217 80 74 if ($diz =~ /[3579]/u)
223 154 0 if ($unit) { }
241 5 157 unless $num =~ /^\d+$/u
242 1 156 if $num < 0 or $num > '999999999999'
243 1 155 if $num == 1