Branch Coverage

blib/lib/MongoDB/BulkWriteResult.pm
Criterion Covered Total %
branch 0 36 0.0


line true false branch
158 0 0 ref $_[0] eq 'HASH' ? :
160 0 0 unless (2 == grep({exists $args->{$_};} 'op', 'result'))
168 0 0 if eval { do { $result->isa('MongoDB::CommandResult') } }
171 0 0 unless grep {$op eq $_;} @op_map_keys
172 0 0 unless ref $result eq 'HASH'
175 0 0 $op_count ? :
186 0 0 $result->{'writeErrors'} ? :
191 0 0 $result->{'writeConcernError'} ? :
194 0 0 if ($result->{'upserted'})
201 0 0 if (exists $result->{'n'} and $op eq 'insert')
211 0 0 if (exists $result->{'n'})
221 0 0 $op eq 'update' || $op eq 'upsert' ? :
249 0 0 if ($type eq 'MongoDB::InsertOneResult') { }
0 0 elsif ($type eq 'MongoDB::DeleteResult') { }
0 0 elsif ($type eq 'MongoDB::UpdateResult') { }
250 0 0 if ($has_write_error) { }
263 0 0 if (defined $op->upserted_id) { }
298 0 0 if (defined $self->modified_count and defined $result->modified_count) { }