Branch Coverage

blib/lib/MongoDB/BulkWriteResult.pm
Criterion Covered Total %
branch 0 38 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'})
205 0 0 if (exists $result->{'n'} and $op eq 'insert')
209 0 0 if $error_idx{$i}
216 0 0 if (exists $result->{'n'})
226 0 0 $op eq 'update' || $op eq 'upsert' ? :
260 0 0 if ($type eq 'MongoDB::InsertOneResult') { }
0 0 elsif ($type eq 'MongoDB::DeleteResult') { }
0 0 elsif ($type eq 'MongoDB::UpdateResult') { }
261 0 0 if ($has_write_error) { }
274 0 0 if (defined $op->upserted_id) { }
309 0 0 if (defined $self->modified_count and defined $result->modified_count) { }