Condition Coverage

blib/lib/Lingua/IND/Words2Nums.pm
Criterion Covered Total %
condition 12 26 46.1


and 3 conditions

line !l l&&!r l&&r condition
153 2 2 2 defined $words[0] and $words[0] eq "ERR"
160 8 0 0 $seen_digits and do { push @nums, 10 * pop(@nums) + $Digits{$w} }
197 0 0 0 defined $words[0] and $words[0] eq "ERR"
219 12 0 2 $w =~ /^se(.+)$/u and defined $Words{$1}
12 0 0 $w =~ /^(.+)(belas|puluh|ratus|ribu|juta|mil[iy]ard?|tril[iy]un)$/u and defined $Words{$1}

or 2 conditions

line l !l condition
78 4 2 shift() // ""
87 0 0 defined $num2 or return
131 0 0 defined $num2 or return
193 0 0 shift() // ""

or 3 conditions

line l !l&&r !l&&!r condition
176 4 2 4 $aa > $Mults{$w} or not @nums