Branch Coverage

blib/lib/Lingua/KAZ/Num2Word.pm
Criterion Covered Total %
branch 24 32 75.0


line true false branch
29 0 52 if not defined $positive && $positive =~ /\A\d+\z/msux or $positive < 0 or $positive > 999999999
38 15 37 if $positive >= 0 and $positive < 10
39 6 31 if $positive >= 10 and $positive < 100 and $positive % 10 == 0
44 11 20 if ($positive > 9 and $positive < 100) { }
2 18 elsif ($positive == 100) { }
9 9 elsif ($positive > 100 and $positive < 1000) { }
7 2 elsif ($positive >= 1000 and $positive < 1000000) { }
2 0 elsif ($positive >= 1000000 and $positive < 1000000000) { }
57 3 6 $hun_idx == 1 ? :
58 8 1 $remain ? :
64 2 5 $tho_idx == 1 ? :
65 3 4 $remain ? :
72 1 1 $remain ? :
85 0 0 if not defined $number && $number =~ /\A\d+\z/msux or $number < 1 or $number > 999999999
99 0 0 if ($cardinal =~ /([\x{430}\x{435}\x{4d9}\x{456}\x{43e}\x{4e9}\x{4b1}\x{4af}\x{44b}])[^\x{430}\x{435}\x{4d9}\x{456}\x{43e}\x{4e9}\x{4b1}\x{4af}\x{44b}]*\z/msux)
118 0 0 $ends_in_vowel ? :