Condition Coverage

blib/lib/MongoDB/MongoClient.pm
Criterion Covered Total %
condition 12 40 30.0


and 3 conditions

line !l l&&!r l&&r condition
959 2 1 0 ref $opt_ssl and ref $opt_ssl ne 'HASH'
1676 0 0 0 $read_pref and ref $read_pref ne 'MongoDB::ReadPreference'
1697 0 0 0 $read_pref and ref $read_pref ne 'MongoDB::ReadPreference'
1742 0 0 0 ref $output eq 'HASH' and exists $output->{'databases'}
1836 0 0 0 defined $ns and length $ns
1839 0 0 0 defined $db and defined $coll

or 2 conditions

line l !l condition
174 11 177 $self->_uri->options->{'authsource'} // ''
1509 16 172 $first || ''
1650 0 0 $opts ||= {}
1747 0 0 $@ || 'Unknown error'
1771 0 0 $args ||= {}
1865 0 0 $args ||= {}
1943 0 0 $pipeline ||= []
1944 0 0 $options ||= {}

or 3 conditions

line l !l&&r !l&&!r condition
175 30 1 157 length $self->username || length $source
954 1 2 184 defined $uri_ssl or defined $opt_ssl