blib/lib/Lingua/EUS/Numbers.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 45 | 58 | 77.5 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
127 | 134 | 0 | 32 | $len == 7 and $extra_digits == 1 |
131 | 44 | 78 | 44 | $len <= 8 and $len >= 7 |
122 | 4 | 40 | $len <= 8 and $len >= 7 and $whats_left != 0 | |
82 | 18 | 22 | $len <= 8 and $len >= 7 and $whats_left != 0 and not reverse($num) =~ /^[^0]000/ | |
143 | 50 | 2 | 26 | $hundreds != 0 and $tens == 0 |
52 | 8 | 18 | $hundreds != 0 and $tens == 0 and $units == 0 | |
10 | 50 | 0 | $hundreds == 0 and $tens || $units | |
30 | 4 | 16 | $hundreds == 0 and $tens || $units and not $num =~ /^0/ | |
14 | 2 | 28 | $thousands == 0 and $hundreds == 0 | |
16 | 28 | 0 | $thousands == 0 and $hundreds == 0 and $tens || $units |
line | l | !l | condition |
---|---|---|---|
89 | 318 | 0 | shift() // (return) |
247 | 162 | 0 | shift() // (return) |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
100 | 1 | 0 | 312 | $num > 999999999999 or $num < 0 |
143 | 4 | 16 | 30 | $tens || $units |
18 | 0 | 60 | $hundreds != 0 and $tens == 0 and $units == 0 or $hundreds == 0 and $tens || $units and not $num =~ /^0/ | |
2 | 0 | 26 | $tens || $units | |
16 | 0 | 44 | $hundreds != 0 and $tens == 0 and $units == 0 or $hundreds == 0 and $tens || $units and not $num =~ /^0/ or $thousands == 0 and $hundreds == 0 and $tens || $units | |
178 | 0 | 0 | 352 | $num > 999 or $num < 0 |
197 | 10 | 18 | 0 | $tens or $units |
252 | 0 | 1 | 156 | $num < 0 or $num > 999999999999 |