Branch Coverage

blib/lib/Lingua/LTZ/Num2Word.pm
Criterion Covered Total %
branch 44 60 73.3


line true false branch
29 1 47 if not defined $positive && $positive =~ /\A\d+\z/msux or $positive < 0 or $positive > 999999999
42 1 46 if $positive == 0
45 1 45 if $positive == 1
47 10 35 if $positive >= 2 and $positive < 13
48 1 34 if $positive == 15
49 1 33 if $positive == 16
50 1 32 if $positive == 17
51 1 31 if $positive == 18
52 2 29 if $positive == 19
53 1 28 if $positive > 12 and $positive < 20
59 15 13 if ($positive > 19 and $positive < 100) { }
7 6 elsif ($positive >= 100 and $positive < 1000) { }
4 2 elsif ($positive > 999 and $positive < 1000000) { }
2 0 elsif ($positive > 999999 and $positive < 1000000000) { }
63 14 1 if ($remain) { }
77 2 5 $one_idx == 1 ? :
78 4 3 $remain ? :
84 2 2 $one_idx == 1 ? :
85 2 2 $remain ? :
93 1 1 if ($one_idx == 1) { }
99 0 2 $remain ? :
117 1 13 if $first_char =~ /[aeiou\344\353\351AEIOU]/u
120 8 5 if $first_char =~ /[ndtzh]/u
132 0 0 if not defined $number && $number =~ /\A\d+\z/msux or $number < 1 or $number > 999999999
139 0 0 if $number == 1
140 0 0 if $number == 2
141 0 0 if $number == 3
144 0 0 if $number == 7
145 0 0 if $number == 8
150 0 0 $number < 20 ? :