Condition Coverage

blib/lib/Lingua/RU/Numeral.pm
Criterion Covered Total %
condition 74 76 97.3


and 3 conditions

line !l l&&!r l&&r condition
126 59 7 3 $case =~ /^a/i && $object =~ /^animate/i
161 242 219 3724 length $number and $number
166 389 1 40 $multi =~ /^plural/i && $number == 1
318 45 27 $case =~ /^a/i && $object =~ /^animate/i
216 814 1 136 $multi =~ /^plural/i && $d == 1
221 1059 1 136 $multi =~ /^plural/i && $d == 1
498 30880 5300 4080 $case =~ /^a/i and $object =~ /^animate/i
505 1493 301 8 $case =~ /^i/ and exists $cfg->{'alt'}
508 4 1 3 defined $cfg->{'alt'}{$k} and $cfg->{'alt'}{$k} =~ /^(C|O)/i
531 1399 238 165 $case =~ /^a/i and $object =~ /^animate/i
1637 159 6 $case =~ /^a/i and $object =~ /^animate/i and $multi =~ /^plural/i
544 1 1 84 defined $prolog->[0] && length $prolog->[0]
145 84 2 ~~@$prolog < 2 and not defined $prolog->[0] && length $prolog->[0]
557 1 1 143 $k and $m
719 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'}
1017 1 1 21 defined $epilog->{'gender'} and $epilog->{'gender'} =~ /^\s*(m|f|n)/i

or 2 conditions

line l !l condition
104 1197 675 $cfg{'gender'} || 'masculine'
107 1834 38 $cfg{'case'} || 'nominative'
110 1231 641 $cfg{'multi'} || 'singular'
113 1021 851 $cfg{'object'} || 'inanimate'
578 1271 601 $cfg->{'prolog'} // (return [])

or 3 conditions

line l !l&&r !l&&!r condition
496 4546 35654 60 $bsw{$case}{$g}{'unit'}[$_] //= $bsw{$case}{'masculine'}{'unit'}[$_]
498 447 3633 0 $bsw{'a'}{$g}{'animate'}[$_] //= $bsw{'a'}{'masculine'}{'animate'}[$_]
544 1640 3 228 not @$prolog or ~~@$prolog < 2 and not defined $prolog->[0] && length $prolog->[0]
547 1 1 227 !(defined $prolog->[0] && length $prolog->[0]) || $prolog->[0] =~ /=/
588 2 1 1 length $k or $v