| blib/lib/MongoDBx/Tiny/Plugin/SingleByCache.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % | 
| branch | 0 | 16 | 0.0 | 
| line | true | false | branch | 
|---|---|---|---|
| 52 | 0 | 0 | if (not $cache and $self->can('get_cache')) { } | 
| 0 | 0 | elsif (not $cache || $self->can('get_cache')) { } | |
| 58 | 0 | 0 | unless ($cache->can('get') and $cache->can('set')) | 
| 62 | 0 | 0 | unless ($key) | 
| 66 | 0 | 0 | if ($document) | 
| 70 | 0 | 0 | if (defined $object) | 
| 71 | 0 | 0 | unless $cache->set($key, $object->object_to_document) | 
| 85 | 0 | 0 | unless (ref $query eq 'HASH') |