Branch Coverage

blib/lib/Lingua/IND/Words2Nums.pm
Criterion Covered Total %
branch 24 44 54.5


line true false branch
76 0 66 if $DEBUG
85 0 6 if ($words =~ /(.+)\b$Exp_pat\b(.+)/) { }
90 0 0 if defined $num1
95 2 4 unless defined $num1
108 0 6 if ($words =~ /^[\s\t]*$Neg_pat\b(.+)/) { }
111 0 0 unless defined $num1
117 2 4 unless defined $num1
130 0 6 if ($words =~ /(.+)\b$Dec_pat\b(.+)/) { }
134 0 0 if defined $num1
140 2 4 unless defined $num1
156 2 4 if defined $words[0] and $words[0] eq "ERR"
160 8 6 if (defined $Digits{$w}) { }
0 6 elsif ($w eq 'belas') { }
163 8 0 unless ($seen_digits and do { push @nums, 10 * pop(@nums) + $Digits{$w} })
168 0 0 unless $seen_digits
175 0 6 unless @nums
181 4 2 if ($aa > $Mults{$w})
201 0 0 if defined $words[0] and $words[0] eq "ERR"
206 0 0 unless defined $Digits{$w}
223 2 12 if ($w =~ /^se(.+)$/ and defined $Words{$1}) { }
0 12 elsif ($w =~ /^(.+)(belas|puluh|ratus|ribu|juta|mil[iy]ard?|tril[iy]un)$/ and defined $Words{$1}) { }
10 2 elsif (defined $Words{$w}) { }