Branch Coverage

blib/lib/Lingua/RUS/Num2Word.pm
Criterion Covered Total %
branch 20 86 23.2


line true false branch
93 3 3 $sum >= 1 ? :
95 0 6 if $sum_rub - $sum > 0
104 0 4 if $sum_rub - $sum_tmp > 0
107 0 6 if $out_rub == 0
122 15 0 if (not $nominal and $sum < 100 or $nominal > 0 and $nominal < 6 and $sum < 1000)
124 2 13 if ($s2 > 0)
129 0 15 if $sx - ($sum - $s2 * 100) > 0
131 12 3 if ($sx < 20 and $sx > 0 or $sx == 0 and not $nominal) { }
136 0 3 if $s1 - $sx / 10 > 0
138 3 0 if ($s1 > 0)
142 2 1 if ($s0 > 0)
148 15 0 if ($nom >= 0)
149 14 1 defined $nominal ? :
150 4 11 if defined $nominal and $nominal == 1
166 0 0 if not defined $number && $number =~ /\A\d+\z/msux or $number < 0 or $number > 999999999
187 0 0 if exists $irregular{$number}
202 0 0 if exists $teens{$number}
255 0 0 if ($number >= 1000000)
258 0 0 if ($remainder == 0)
259 0 0 if ($millions == 1)
268 0 0 if ($tmp3 >= 11 and $tmp3 <= 19) { }
0 0 elsif ($tmp4 == 1) { }
0 0 elsif ($tmp4 >= 2 and $tmp4 <= 4) { }
283 0 0 if ($number >= 1000)
286 0 0 if ($remainder == 0)
287 0 0 if ($thousands == 1)
295 0 0 if ($thousands == 1) { }
0 0 elsif ($thousands == 2) { }
0 0 elsif ($tmp3 >= 11 and $tmp3 <= 19) { }
0 0 elsif ($tmp4 == 1) { }
0 0 elsif ($tmp4 == 2) { }
0 0 elsif ($tmp4 >= 3 and $tmp4 <= 4) { }
320 0 0 if ($number >= 100)
323 0 0 if ($remainder == 0)
330 0 0 if ($number >= 20)
333 0 0 if ($remainder == 0)
350 0 0 if $number == 0
379 0 0 if exists $card_units{$number}
383 0 0 if ($number >= 100)
387 0 0 if $number == 0
391 0 0 if ($number >= 20)
395 0 0 if $number == 0
400 0 0 if ($number > 0)