blib/lib/Mongoose.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 6 | 28 | 21.4 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
146 | 0 | 0 | 0 | $shorten and $module =~ /$search_path\:\:(.*?)$/ |
157 | 0 | 0 | 0 | $shorten and my $class_map = $self->_args->{'class'} |
line | l | !l | condition |
---|---|---|---|
111 | 24 | 0 | $name ||= 'default' |
132 | 0 | 24 | $conf{'host'} ||= 'mongodb://localhost:27017' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
58 | 0 | 24 | 0 | delete $p{'-now'} || defined wantarray |
70 | 0 | 0 | 0 | ref $class_name || $class_name |
80 | 0 | 24 | 0 | delete $args->{'namespace'} || $self->_ns |
106 | 0 | 0 | 0 | $ns or $self->_ns |
112 | 24 | 0 | 0 | $ns ||= $self->_ns |
133 | 0 | 24 | 0 | $self->_client->{$conf{'host'}} ||= 'MongoDB::MongoClient'->new(%conf) |