Branch Coverage

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


line true false branch
35 0 66 if not defined $positive && $positive =~ /\A\d+\z/msux or $positive < 0 or $positive > 999999999
42 13 53 if $positive <= 9
45 11 42 if $positive >= 10 and $positive <= 19
48 25 17 if ($positive >= 20 and $positive <= 99)
52 8 17 if $unit == 0
57 8 9 if ($unit == 1)
66 13 4 if ($positive >= 100 and $positive <= 999)
71 3 10 if ($hun_idx == 1) { }
78 4 9 if $remain
83 4 0 if ($positive >= 1000 and $positive <= 999999)
88 2 2 if ($tho_idx == 1) { }
1 1 elsif ($tho_idx == 2) { }
98 1 3 if $remain
103 0 0 if ($positive >= 1000000 and $positive <= 999999999)
108 0 0 if ($mil_idx == 1) { }
115 0 0 if $remain