Condition Coverage

blib/lib/Geo/Names/Russian.pm
Criterion Covered Total %
condition 58 72 80.5


and 3 conditions

line !l l&&!r l&&r condition
143 0 5 2 $words[$i + 1] and $words[$i + 1] =~ / (?: [\x{44b}\x{438}]\x{439} | \x{44f} ) $ /msx
156 10 19 16 @words > 2 and $words[$i - 1] =~ / ^ \d+ (?: -? \S{1,3} )? $ /msx
29 13 3 @words > 2 and $words[$i - 1] =~ / ^ \d+ (?: -? \S{1,3} )? $ /msx and $words[$i] =~ / ^ $km_re $ /msx
184 4 30 3 !$status || $status =~ /[\x{430}\x{44f}\x{44c}]$/imsx and $words[$i] =~ / ^ \d{1,2} -? \x{430}?\x{44f} $ /imsx
26 8 0 $status and $status =~ /[\x{435}]$/imsx
34 0 0 $status and $status =~ /[\x{435}]$/imsx and $words[$i] =~ / ^ \d{1,2} -? \x{43e}?\x{435} $ /imsx
26 4 4 $status and $status =~ /[^\x{435}\x{430}\x{44f}\x{44c}]$/imsx
30 2 2 $status and $status =~ /[^\x{435}\x{430}\x{44f}\x{44c}]$/imsx and $words[$i] =~ / ^ \d{1,2} -? [\x{44b}\x{438}\x{43e}]?\x{439} $ /imsx
193 7 3 15 @words > 1 and not $number
10 11 4 @words > 1 and not $number and $words[0] =~ / ^ \d{1,2} $ /msx
14 2 2 @words > 1 and not $number and $words[0] =~ / ^ \d{1,2} $ /msx and $words[-1] =~ / (?: [\x{430}\x{44f}]\x{44f} | [\x{44b}\x{438}]\x{439} ) $ /msx
198 9 3 13 @words > 1 and not $number
12 13 0 @words > 1 and not $number and $words[-1] =~ / ^ \d{1,2} $ /msx
16 0 0 @words > 1 and not $number and $words[-1] =~ / ^ \d{1,2} $ /msx and $words[-2] =~ / (?: [\x{430}\x{44f}]\x{44f} | [\x{44b}\x{438}]\x{439} ) $ /msx
214 15 8 2 @words > 1 and $i >= 0

or 2 conditions

line l !l condition
238 0 12 $suburb ||= ''
243 4 8 $number ||= ''
253 4 8 $addition ||= ''

or 3 conditions

line l !l&&r !l&&!r condition
184 26 7 4 !$status || $status =~ /[\x{430}\x{44f}\x{44c}]$/imsx
3 0 34 !$status || $status =~ /[\x{430}\x{44f}\x{44c}]$/imsx and $words[$i] =~ / ^ \d{1,2} -? \x{430}?\x{44f} $ /imsx or $status and $status =~ /[\x{435}]$/imsx and $words[$i] =~ / ^ \d{1,2} -? \x{43e}?\x{435} $ /imsx
0 0 34 !$status || $status =~ /[\x{430}\x{44f}\x{44c}]$/imsx and $words[$i] =~ / ^ \d{1,2} -? \x{430}?\x{44f} $ /imsx or $status and $status =~ /[\x{435}]$/imsx and $words[$i] =~ / ^ \d{1,2} -? \x{43e}?\x{435} $ /imsx or $status and $status =~ /[^\x{435}\x{430}\x{44f}\x{44c}]$/imsx and $words[$i] =~ / ^ \d{1,2} -? [\x{44b}\x{438}\x{43e}]?\x{439} $ /imsx
219 12 13 0 $status ||= $words[-1] =~ /[\x{44b}\x{438}]\x{439} $/xi ? 'переулок' : 'улица'
262 4 2 6 $number or $km
6 0 6 $number or $km or $suburb
263 2 0 10 $km or $suburb