Condition Coverage

blib/lib/MongoDB/_URI.pm
Criterion Covered Total %
condition 43 69 62.3


and 3 conditions

line !l l&&!r l&&r condition
199 0 1 2 &Int()->($v) and $v >= -1
255 261 2 2 exists $parsed{$lc_k} and not exists $options_with_list_type{$lc_k}
317 193 1 8 exists $parsed{'tlsinsecure'} and exists $parsed{'tlsallowinvalidcertificates'} || exists $parsed{'tlsallowinvalidhostnames'}
326 184 1 9 exists $parsed{'tls'} and exists $parsed{'ssl'}
1 5 4 exists $parsed{'tls'} and exists $parsed{'ssl'} and $parsed{'tls'} != $parsed{'ssl'}
366 0 0 0 $phase and $phase eq 'init'
401 0 0 0 $phase and $phase eq 'init'
409 0 0 0 $minimum_ttl < 60 and $phase
0 0 0 $minimum_ttl < 60 and $phase and $phase ne 'init'
430 0 0 5 defined $result{'hostids'} and length $result{'hostids'}
492 0 0 0 defined $self->{'expires'} and $self->{'expires'} <= &MongoDB::_URI::time()
522 0 5 541 defined $hostids and length $hostids
527 550 0 34 $hostid =~ m[/] and $hostid =~ /\.sock/
539 2 3 125 $port >= 1 and $port <= 65535

or 2 conditions

line l !l condition
288 2 4 $parsed{$lc_k} ||= []
465 1 1 $_ // ''
475 2 1 $result{'db_name'} // ''

or 3 conditions

line l !l&&r !l&&!r condition
207 1 3 6 $v == 1 or $v == -1
4 5 1 $v == 1 or $v == -1 or $v >= 90
317 4 4 1 exists $parsed{'tlsallowinvalidcertificates'} || exists $parsed{'tlsallowinvalidhostnames'}
378 0 0 0 not defined $minimum_ttl or $rr->ttl < $minimum_ttl
460 5 0 0 $options->{$stb_key} || $options->{$stb_key} eq 'true'
464 1 0 2 defined $result{'username'} or defined $result{'password'}
661 1 8 112 $str =~ /$not_pct_enc_re/ || $str =~ /$not_allowed_re/