| blib/lib/Mongoose/Engine.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % | 
| condition | 0 | 41 | 0.0 | 
| 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') | |
| 442 | 0 | 0 | 0 | @_ == 1 and !ref($_[0]) || ref $_[0] eq 'MongoDB::OID' | 
| line | l | !l | condition | 
|---|---|---|---|
| 210 | 0 | 0 | $doc->{$name} ||= [] | 
| line | l | !l&&r | !l&&!r | condition | 
|---|---|---|---|---|
| 78 | 0 | 0 | 0 | my $aryclass ||= &blessed($item) | 
| 149 | 0 | 0 | 0 | ref $self || $self | 
| 378 | 0 | 0 | 0 | 'Mongoose'->_db_for_class(ref $self || $self) || croak('MongoDB not set. Set Mongoose->db("name") first') | 
| 389 | 0 | 0 | 0 | $config->{'collection'} || ($config->{'collection'} = $db->get_collection($config->{'collection_name'})) | 
| 429 | 0 | 0 | 0 | ref $self || $self | 
| 442 | 0 | 0 | 0 | !ref($_[0]) || ref $_[0] eq 'MongoDB::OID' | 
| 443 | 0 | 0 | 0 | eval { do { 'MongoDB::OID'->new('value', $_[0]) } } || $_[0] |