Condition Coverage

blib/lib/MongoDB/_URI.pm
Criterion Covered Total %
condition 35 66 53.0


and 3 conditions

line !l l&&!r l&&r condition
203 0 1 2 &Int()->($v) and $v >= -1
259 257 2 2 exists $parsed{$lc_k} and not exists $options_with_list_type{$lc_k}
326 184 1 8 exists $parsed{'tls'} and exists $parsed{'ssl'}
1 4 4 exists $parsed{'tls'} and exists $parsed{'ssl'} and $parsed{'tls'} != $parsed{'ssl'}
356 0 0 0 $phase and $phase eq 'init'
391 0 0 0 $phase and $phase eq 'init'
399 0 0 0 $minimum_ttl < 60 and $phase
0 0 0 $minimum_ttl < 60 and $phase and $phase ne 'init'
420 0 0 2 defined $result{'hostids'} and length $result{'hostids'}
474 0 0 0 defined $self->{'expires'} and $self->{'expires'} <= &MongoDB::_URI::time()
504 0 5 537 defined $hostids and length $hostids
509 546 0 34 $hostid =~ m[/] and $hostid =~ /\.sock/
521 2 3 122 $port >= 1 and $port <= 65535

or 2 conditions

line l !l condition
292 2 4 $parsed{$lc_k} ||= []
447 0 0 $_ // ''
457 0 0 $result{'db_name'} // ''

or 3 conditions

line l !l&&r !l&&!r condition
211 1 3 6 $v == 1 or $v == -1
4 5 1 $v == 1 or $v == -1 or $v >= 90
321 9 0 192 exists $parsed{'tlsinsecure'} or exists $parsed{'tlsallowinsecure'}
322 4 4 1 exists $parsed{'tlsallowinvalidcertificates'} or exists $parsed{'tlsallowinvalidhostnames'}
368 0 0 0 not defined $minimum_ttl or $rr->ttl < $minimum_ttl
446 0 0 0 defined $result{'username'} or defined $result{'password'}
643 1 8 105 $str =~ /$not_pct_enc_re/ || $str =~ /$not_allowed_re/