blib/lib/Lingua/Slavic/Numbers.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 31 | 42 | 73.8 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
318 | 252 | 79 | 27 | $decompose_num == 1 and scalar @n == 1 |
276 | 41 | 14 | $decompose_num == 2 and scalar @n == 1 | |
317 | 9 | 5 | $decompose_num == 2 and scalar @n == 1 and $n[0] == 0 | |
330 | 0 | 301 | 0 | $some_left and $decompose_num <= 20 && scalar @n == 0 || scalar @n == 2 && $n[0] == 0 && $n[1] == 0 |
387 | 4504 | 118 | 50 | exists $$options{$gender} and exists $Lingua::Slavic::Numbers::INFLEXIONS{$lang}{$gender}{$number} |
446 | 0 | 1 | 1 | $num and int $num != $num |
line | l | !l | condition |
---|---|---|---|
179 | 0 | 148 | shift @_ || {} |
236 | 145 | 0 | shift @_ || {} |
247 | 0 | 275 | $8 || 0 |
383 | 2358 | 0 | shift @_ || {} |
401 | 196 | 1062 | shift @_ || {} |
465 | 0 | 145 | $parts[1] ||= '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
318 | 27 | 0 | 331 | $decompose_num == 1 and scalar @n == 1 or $decompose_num == 2 and scalar @n == 1 and $n[0] == 0 |
330 | 167 | 0 | 134 | $decompose_num <= 20 && scalar @n == 0 || scalar @n == 2 && $n[0] == 0 && $n[1] == 0 |
405 | 1068 | 0 | 190 | $number =~ /^$Lingua::Slavic::Numbers::RE{'num'}{'int'}$/ or $number =~ /^$Lingua::Slavic::Numbers::RE{'num'}{'real'}$/ |
539 | 128 | 555 | 861 | $data =~ /\[$Lingua::Slavic::Numbers::RE{'num'}{'real'}{join $;, -'sep', '[,.]?'}\]+/ or $data =~ /{$Lingua::Slavic::Numbers::RE{'num'}{'real'}{join $;, -'sep', '[,.]?'}}+/ |