Branch Coverage

blib/lib/Lingua/CES/Num2Word.pm
Criterion Covered Total %
branch 27 36 75.0


line true false branch
51 1 33 if not defined $number && $number =~ /\A\d+\z/msx or $number < 0 or $number > 999999999
59 13 20 if ($number < 20) { }
8 12 elsif ($number < 100) { }
8 4 elsif ($number < 1000) { }
2 2 elsif ($number < 1000000) { }
2 0 elsif ($number < 1000000000) { }
64 1 7 if ($reminder == 0) { }
73 7 1 if ($reminder != 0) { }
82 2 0 $reminder != 0 ? :
87 2 0 if ($tmp3 < 9 or $tmp3 > 20) { }
88 0 2 if ($tmp4 == 1 and $tmp2 == 1) { }
0 2 elsif ($tmp4 == 1) { }
1 1 elsif ($tmp4 > 1 and $tmp4 < 5) { }
108 2 0 $reminder != 0 ? :
113 2 0 if ($tmp3 < 9 or $tmp3 > 20) { }
114 0 2 if ($tmp4 == 1 and $tmp2 == 1) { }
0 2 elsif ($tmp4 == 1) { }
1 1 elsif ($tmp4 > 1 and $tmp4 < 5) { }