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
188 0 0 if ($cmd eq 'update') { }
0 0 elsif ($cmd eq 'insert') { }
194 0 0 if ref $chunk->[$i]{'u'} eq 'BSON::Raw'
204 0 0 unless (ref $chunk->[$i] eq 'BSON::Raw')
217 0 0 if ($cmd eq 'insert' or $cmd eq 'update')
232 0 0 $self->_is_retryable ? :
235 0 0 unless (my $cmd_result = eval { do { $self->_is_retryable ? $self->client->send_retryable_write_op($op) : $self->client->send_write_op($op) } })
238 0 0 if ($error->$MongoDB::Op::_BulkWrite::_isa('MongoDB::_CommandSizeError')) { }
0 0 elsif ($error->$MongoDB::Op::_BulkWrite::_can('result')) { }
239 0 0 if (@$chunk == 1) { }
270 0 0 unless $cmd_result
281 0 0 if ($r->count_write_errors)
288 0 0 if $boolean_ordered
319 0 0 if ($type ne $last_type or $count == $max_batch_count) { }
345 0 0 if (@{$batches{$type}[-1];} == $max_batch_count) { }
377 0 0 if ($w_0)
379 0 0 scalar @$wc_args ? :
393 0 0 if ($type eq 'insert') { }
0 0 elsif ($type eq 'update') { }
0 0 elsif ($type eq 'delete') { }
434 0 0 unless (my $op_result = eval { do { $op->execute($link) } })
436 0 0 if ($error->$MongoDB::Op::_BulkWrite::_isa('MongoDB::DatabaseError') and $error->result->does('MongoDB::Role::_WriteResult'))
441 0 0 unless $w_0 and /exceeds maximum size/
445 0 0 $op_result ? :
450 0 0 if ($w_0) { }
451 0 0 if $ordered and !$gle_result || $gle_result->count_write_errors
455 0 0 if $ordered