Branch Coverage

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


line true false branch
29 1 15 if not defined $positive && $positive =~ /\A\d+\z/msux or $positive < 0 or $positive > 999999999
47 4 11 if $positive >= 0 and $positive < 10
48 1 10 if $positive == 10
54 2 8 if ($positive > 10 and $positive < 20) { }
3 5 elsif ($positive > 19 and $positive < 100) { }
1 4 elsif ($positive == 100) { }
2 2 elsif ($positive > 100 and $positive < 1000) { }
2 0 elsif ($positive > 999 and $positive < 1000000) { }
0 0 elsif ($positive > 999999 and $positive < 1000000000) { }
62 2 1 if ($remain) { }
76 1 1 if ($idx == 1) { }
82 1 1 $remain ? :
90 1 1 if ($idx == 1) { }
96 0 2 $remain ? :
103 0 0 if ($idx == 1) { }
109 0 0 $remain ? :