| blib/lib/Lingua/IND/Words2Nums.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 12 | 26 | 46.1 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 157 | 2 | 2 | 2 | defined $words[0] and $words[0] eq 'ERR' |
| 164 | 8 | 0 | 0 | $seen_digits and do { push @nums, 10 * pop(@nums) + $Digits{$w} } |
| 202 | 0 | 0 | 0 | defined $words[0] and $words[0] eq 'ERR' |
| 224 | 12 | 0 | 2 | $w =~ /^se(.+)$/ and defined $Words{$1} |
| 12 | 0 | 0 | $w =~ /^(.+)(belas|puluh|ratus|ribu|juta|mil[iy]ard?|tril[iy]un)$/ and defined $Words{$1} |
| line | l | !l | condition |
|---|---|---|---|
| 82 | 4 | 2 | shift() // '' |
| 91 | 0 | 0 | defined $num2 or return |
| 135 | 0 | 0 | defined $num2 or return |
| 198 | 0 | 0 | shift() // '' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 179 | 4 | 2 | 4 | $aa > $Mults{$w} or not @nums |