Branch Coverage

blib/lib/MongoDB/Op/_BulkWrite.pm
Criterion Covered Total %
branch 0 72 0.0


line true false branch
89 0 0 if $type eq 'update' or $type eq 'delete'
96 0 0 unless $link
98 0 0 if ($self->has_collation)
99 0 0 unless $link->supports_collation
103 0 0 unless $self->_should_use_acknowledged_write
116 0 0 $use_write_cmd ? :
130 0 0 $self->ordered ? :
136 0 0 if ($use_write_cmd) { }
144 0 0 unless $self->_should_use_acknowledged_write
186 0 0 if ($cmd eq 'update') { }
0 0 elsif ($cmd eq 'insert') { }
192 0 0 if ref $chunk->[$i]{'u'} eq 'BSON::Raw'
202 0 0 unless (ref $chunk->[$i] eq 'BSON::Raw')
215 0 0 if ($cmd eq 'insert' or $cmd eq 'update')
230 0 0 $self->_is_retryable ? :
233 0 0 unless (my $cmd_result = eval { do { $self->_is_retryable ? $self->client->send_retryable_write_op($op) : $self->client->send_write_op($op) } })
236 0 0 if ($error->$MongoDB::Op::_BulkWrite::_isa('MongoDB::_CommandSizeError')) { }
0 0 elsif ($error->$MongoDB::Op::_BulkWrite::_can('result')) { }
237 0 0 if (@$chunk == 1) { }
266 0 0 unless $cmd_result
276 0 0 if ($r->count_write_errors)
283 0 0 if $boolean_ordered
313 0 0 if ($type ne $last_type or $count == $max_batch_count) { }
335 0 0 if (@{$batches{$type}[-1];} == $max_batch_count) { }
360 0 0 if ($w_0)
362 0 0 scalar @$wc_args ? :
376 0 0 if ($type eq 'insert') { }
0 0 elsif ($type eq 'update') { }
0 0 elsif ($type eq 'delete') { }
417 0 0 unless (my $op_result = eval { do { $op->execute($link) } })
419 0 0 if ($error->$MongoDB::Op::_BulkWrite::_isa('MongoDB::DatabaseError') and $error->result->does('MongoDB::Role::_WriteResult'))
424 0 0 unless $w_0 and /exceeds maximum size/
428 0 0 $op_result ? :
433 0 0 if ($w_0) { }
434 0 0 if $ordered and !$gle_result || $gle_result->count_write_errors
438 0 0 if $ordered