Branch Coverage

blib/lib/Lingua/RUS/Num2Word.pm
Criterion Covered Total %
branch 42 84 50.0


line true false branch
93 3 3 $sum >= 1 ? :
98 5 1 $sum >= 0 ? :
108 0 6 if $out_rub == 0
123 15 0 if (not $nominal and $sum < 100 or $nominal > 0 and $nominal < 6 and $sum < 1000)
125 2 13 if ($s2 > 0)
130 0 15 if $sx - ($sum - $s2 * 100) > 0
132 12 3 if ($sx < 20 and $sx > 0 or $sx == 0 and not $nominal) { }
137 0 3 if $s1 - $sx / 10 > 0
139 3 0 if ($s1 > 0)
143 2 1 if ($s0 > 0)
149 15 0 if ($nom >= 0)
150 14 1 defined $nominal ? :
151 4 11 if defined $nominal and $nominal == 1
167 0 41 if not defined $number && $number =~ /\A\d+\z/msux or $number < 0 or $number > 999999999
188 13 28 if exists $irregular{$number}
203 9 19 if exists $teens{$number}
256 0 19 if ($number >= 1000000)
259 0 0 if ($remainder == 0)
260 0 0 if ($millions == 1)
269 0 0 if ($tmp3 >= 11 and $tmp3 <= 19) { }
0 0 elsif ($tmp4 == 1) { }
0 0 elsif ($tmp4 >= 2 and $tmp4 <= 4) { }
284 3 16 if ($number >= 1000)
287 2 1 if ($remainder == 0)
288 1 1 if ($thousands == 1)
296 1 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) { }
321 4 12 if ($number >= 100)
324 3 1 if ($remainder == 0)
331 12 0 if ($number >= 20)
334 8 4 if ($remainder == 0)
351 0 1 if $number == 0
380 1 0 if exists $card_units{$number}
384 0 0 if ($number >= 100)
388 0 0 if $number == 0
392 0 0 if ($number >= 20)
396 0 0 if $number == 0
401 0 0 if ($number > 0)