Condition Coverage

blib/lib/MongoDB/_Link.pm
Criterion Covered Total %
condition 12 44 27.2


and 3 conditions

line !l l&&!r l&&r condition
316 0 0 0 defined $fd and $fd >= 0
372 0 0 0 defined $server->logical_session_timeout_minutes && $server->type ne 'Standalone'
395 0 7 0 $version >= $min && $version <= $max
420 0 0 0 $self->fh and $self->fh->isa('IO::Socket::SSL')
454 0 0 0 $self->connected && $self->fh
461 0 0 1 not $write_opt->{'disable_compression'} and $self->server
0 1 0 not $write_opt->{'disable_compression'} and $self->server and $self->server->compressor
619 0 0 0 $self->SSL_options->{'SSL_ca_file'} and -e $self->SSL_options->{'SSL_ca_file'}

or 2 conditions

line l !l condition
337 0 1 $server->is_master->{'minWireVersion'} || '0'
338 0 1 $server->is_master->{'maxWireVersion'} || '0'
340 0 1 $server->is_master->{'maxBsonObjectSize'} || 4194304
342 0 1 $server->is_master->{'maxWriteBatchSize'} || 1000
393 0 7 $self->min_wire_version || 0
394 0 7 $self->max_wire_version || 0
459 0 1 $write_opt ||= {}

or 3 conditions

line l !l&&r !l&&!r condition
287 0 106 0 $ENV{'TEST_MONGO_SOCKET_HOST'} || $host
346 0 1 0 $server->is_master->{'maxMessageSizeBytes'} || 2 * $self->max_bson_object_size