Branch Coverage

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


line true false branch
83 5 313 unless ($num =~ /^\d+$/u)
88 1 312 if ($num > '999999999999' or $num < 0)
94 2 310 if $num == 0
95 70 240 if $num2alpha{$num}
107 112 54 unless $extra_digits == 1
112 100 66 unless $num =~ /000$/u
115 32 134 if $len == 7 and $extra_digits == 1
119 22 22 if ($len <= 8 and $len >= 7 and $whats_left != 0 and not reverse($num) =~ /^[^0]000/u)
127 78 88 if (length $num <= 6)
131 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)
147 240 0 if ($len <= 3)
166 0 352 if $num > 999 or $num < 0
167 96 256 if $num == 0
168 42 214 if $num2alpha{$num}
173 152 62 if ($len == 2)
180 62 0 if ($len == 3)
182 28 34 unless ($hundreds == 0)
185 28 0 if $tens or $units
208 0 214 if $num == 0
210 22 192 if $num2alpha{$num}
212 38 154 unless $diz
215 80 74 if ($diz =~ /[3579]/u)
221 154 0 if ($unit) { }
239 5 157 unless $num =~ /^\d+$/u
240 1 156 if $num < 0 or $num > '999999999999'
241 1 155 if $num == 1