Condition Coverage

blib/lib/Lingua/RU/Numeral.pm
Criterion Covered Total %
condition 73 76 96.0


and 3 conditions

line !l l&&!r l&&r condition
125 59 7 3 $case =~ /^a/i && $object =~ /^animate/i
160 242 219 3724 length $number and $number
165 389 1 40 $multi =~ /^plural/i && $number == 1
318 45 27 $case =~ /^a/i && $object =~ /^animate/i
215 814 1 136 $multi =~ /^plural/i && $d == 1
220 1059 1 136 $multi =~ /^plural/i && $d == 1
497 30880 5300 4080 $case =~ /^a/i and $object =~ /^animate/i
504 1493 301 8 $case =~ /^i/ and exists $cfg->{'alt'}
507 4 1 3 defined $cfg->{'alt'}{$k} and $cfg->{'alt'}{$k} =~ /^(C|O)/i
530 1399 238 165 $case =~ /^a/i and $object =~ /^animate/i
1637 159 6 $case =~ /^a/i and $object =~ /^animate/i and $multi =~ /^plural/i
543 1 1 84 defined $prolog->[0] && length $prolog->[0]
145 84 2 ~~@$prolog < 2 and not defined $prolog->[0] && length $prolog->[0]
556 1 1 143 $k and $m
718 1 1104 23 ref $epilog eq "HASH" and exists $epilog->{'root'}
1104 23 0 ref $epilog eq "HASH" and exists $epilog->{'root'} and exists $epilog->{'ends'}
1016 1 1 21 defined $epilog->{'gender'} and $epilog->{'gender'} =~ /^\s*(m|f|n)/i

or 2 conditions

line l !l condition
103 1197 675 $cfg{'gender'} || 'masculine'
106 1834 38 $cfg{'case'} || 'nominative'
109 1231 641 $cfg{'multi'} || 'singular'
112 1021 851 $cfg{'object'} || 'inanimate'
577 1271 601 $cfg->{'prolog'} // (return [])

or 3 conditions

line l !l&&r !l&&!r condition
495 4546 35714 0 $bsw{$case}{$g}{'unit'}[$_] //= $bsw{$case}{'masculine'}{'unit'}[$_]
497 447 3633 0 $bsw{'a'}{$g}{'animate'}[$_] //= $bsw{'a'}{'masculine'}{'animate'}[$_]
543 1640 3 228 not @$prolog or ~~@$prolog < 2 and not defined $prolog->[0] && length $prolog->[0]
546 1 1 227 !(defined $prolog->[0] && length $prolog->[0]) || $prolog->[0] =~ /=/
587 2 1 1 length $k or $v