Branch Coverage

blib/lib/Lingua/THA/Num2Word.pm
Criterion Covered Total %
branch 2 42 4.7


line true false branch
29 0 2 if not defined $positive && $positive =~ /\A\d+\z/msux or $positive < 0 or $positive > 999999999
37 2 0 if $positive >= 0 and $positive <= 9
38 0 0 if $positive == 10
48 0 0 if ($r == 1)
54 0 0 if ($positive > 10 and $positive < 20) { }
0 0 elsif ($positive >= 20 and $positive < 100) { }
0 0 elsif ($positive >= 100 and $positive < 1000) { }
0 0 elsif ($positive >= 1000 and $positive < 10000) { }
0 0 elsif ($positive >= 10000 and $positive < 100000) { }
0 0 elsif ($positive >= 100000 and $positive < 1000000) { }
0 0 elsif ($positive >= 1000000 and $positive < 1000000000) { }
57 0 0 $remain == 1 ? :
63 0 0 $tens == 2 ? :
65 0 0 if ($remain)
66 0 0 $remain == 1 ? :
74 0 0 if $remain
81 0 0 if $remain
88 0 0 if $remain
95 0 0 if $remain
102 0 0 if $remain
116 0 0 if not defined $number && $number =~ /\A\d+\z/msux or $number < 1 or $number > 999999999