| blib/lib/Mongoose.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 5 | 22 | 22.7 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 147 | 0 | 0 | 0 | $shorten and $module =~ /$search_path\:\:(.*?)$/ |
| 158 | 0 | 0 | 0 | $shorten and my $class_map = $self->_args->{'class'} |
| line | l | !l | condition |
|---|---|---|---|
| 112 | 24 | 0 | $name ||= 'default' |
| 133 | 0 | 24 | $conf{'host'} ||= 'mongodb://localhost:27017' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 58 | 0 | 24 | 0 | delete $p{'-now'} || defined wantarray |
| 71 | 0 | 0 | 0 | ref $class_name || $class_name |
| 81 | 0 | 24 | 0 | delete $args->{'namespace'} || $self->_ns |
| 134 | 0 | 24 | 0 | $self->_client->{$conf{'host'}} ||= 'MongoDB::MongoClient'->new(%conf) |