Condition Coverage

blib/lib/Mongoose/Engine.pm
Criterion Covered Total %
condition 0 43 0.0


and 3 conditions

line !l l&&!r l&&r condition
23 0 0 0 defined $class and $ref_id
24 0 0 0 $self->_id and $self->_id eq $ref_id
65 0 0 0 ref $value eq 'HASH' and defined(my $ref_id = $value->{'_id'})
79 0 0 0 $aryclass and $aryclass->does('Mongoose::EmbeddedDocument')
0 0 0 $aryclass and $aryclass->does('Mongoose::Document')
433 0 0 0 @_ == 1 and !ref($_[0]) || ref $_[0] eq 'BSON::OID'

or 2 conditions

line l !l condition
201 0 0 $doc->{$name} ||= {}
219 0 0 $doc->{$name} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
78 0 0 0 my $aryclass ||= &blessed($item)
162 0 0 0 "Unable to expand subtype $param_class from " . ref($value) || "unblesed value: $value"
169 0 0 0 ref $self || $self
397 0 0 0 'Mongoose'->connection(ref $self || $self) || croak('MongoDB database need to be configured. Set Mongoose->db(...) first')
420 0 0 0 ref $self || $self
433 0 0 0 !ref($_[0]) || ref $_[0] eq 'BSON::OID'
434 0 0 0 eval { do { 'BSON::OID'->new('oid', pack('H*', $_[0])) } } || $_[0]