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
156 2 2 2 defined $words[0] and $words[0] eq "ERR"
163 8 0 0 $seen_digits and do { push @nums, 10 * pop(@nums) + $Digits{$w} }
201 0 0 0 defined $words[0] and $words[0] eq "ERR"
223 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}

or 2 conditions

line l !l condition
81 4 2 shift() // ""
90 0 0 defined $num2 or return
134 0 0 defined $num2 or return
197 0 0 shift() // ""

or 3 conditions

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