Condition Coverage

blib/lib/MongoDB/_Dispatcher.pm
Criterion Covered Total %
condition 0 57 0.0


and 3 conditions

line !l l&&!r l&&r condition
60 0 0 0 defined $op->session and not $op->session->_active_transaction
95 0 0 0 $op->session and $op->session->_address
0 0 0 $op->session and $op->session->_address and $op->session->_active_transaction
0 0 0 $op->session and $op->session->_address and $op->session->_active_transaction and $topology->_supports_mongos_pinning_transactions
148 0 0 0 $link->supports_retryWrites and $self->retry_writes || defined $force && $force eq 'force'
0 0 0 defined $op->session and not $op->session->_in_transaction_state('starting', 'in_progress')
0 0 0 $link->supports_retryWrites and $self->retry_writes || defined $force && $force eq 'force' and (defined $op->session and not $op->session->_in_transaction_state('starting', 'in_progress'))
211 0 0 0 ($err->$MongoDB::_Dispatcher::_isa('MongoDB::NotMasterError') || $err_info && $err_code_name eq 'NotMaster') && $link->max_wire_version < 8
246 0 0 0 defined $op->session and $op->session->_active_transaction
257 0 0 0 $link->supports_retryReads && $self->retry_reads
0 0 0 defined $op->session and $op->session->_in_transaction_state('starting', 'in_progress')
305 0 0 0 defined $op->session and $op->session->_active_transaction

or 3 conditions

line l !l&&r !l&&!r condition
75 0 0 0 eval { do { ($result) = $op->execute($link); 1 } } || do { my $err = length $@ ? $@ : 'caught error, but it was lost in eval unwind'; if ($err->$MongoDB::_Dispatcher::_isa('MongoDB::ConnectionError') or $err->$MongoDB::_Dispatcher::_isa('MongoDB::NetworkTimeout')) { $self->{'topology'}->mark_server_unknown($link->server, $err); } elsif ($err->$MongoDB::_Dispatcher::_isa('MongoDB::NotMasterError')) { $self->{'topology'}->mark_server_unknown($link->server, $err); $self->{'topology'}->mark_stale; } ; die $err }
118 0 0 0 eval { do { ($result) = $self->_try_op_for_link($link, $op); 1 } } || do { my $err = length $@ ? $@ : 'caught error, but it was lost in eval unwind'; die $err }
148 0 0 0 $self->retry_writes || defined $force && $force eq 'force'
216 0 0 0 $err_info && grep({$err_code_name eq $_;} @other_errors) || $not_master
225 0 0 0 eval { do { ($result) = $op->execute($link, $self->{'topology'}->type); 1 } } || do { my $err = length $@ ? $@ : 'caught error, but it was lost in eval unwind'; if ($err->$MongoDB::_Dispatcher::_isa('MongoDB::ConnectionError') or $err->$MongoDB::_Dispatcher::_isa('MongoDB::NetworkTimeout')) { $self->{'topology'}->mark_server_unknown($link->server, $err); } elsif ($self->_is_primary_stepdown($err, $link)) { $self->{'topology'}->mark_server_unknown($link->server, $err); $self->{'topology'}->mark_stale; } ; die $err }
257 0 0 0 not $link->supports_retryReads && $self->retry_reads or defined $op->session and $op->session->_in_transaction_state('starting', 'in_progress')
316 0 0 0 eval { do { ($result) = $op->execute($link, $type); 1 } } || do { my $err = length $@ ? $@ : 'caught error, but it was lost in eval unwind'; if ($err->$MongoDB::_Dispatcher::_isa('MongoDB::ConnectionError') or $err->$MongoDB::_Dispatcher::_isa('MongoDB::NetworkTimeout')) { $self->{'topology'}->mark_server_unknown($link->server, $err); } elsif ($err->$MongoDB::_Dispatcher::_isa('MongoDB::NotMasterError')) { $self->{'topology'}->mark_server_unknown($link->server, $err); $self->{'topology'}->mark_stale; } ; die $err }