Branch Coverage

blib/lib/Mongoose.pm
Criterion Covered Total %
branch 8 40 20.0


line true false branch
51 0 0 if (my $name = shift())
57 23 1 @_ == 1 ? :
61 24 0 if $now
68 2 0 if $config
73 0 0 unless exists $self->_config->{$class}
82 24 0 unless ref $ns eq 'ARRAY'
84 0 24 if (my $class = delete $args->{'class'})
85 0 0 unless ref $class eq 'ARRAY'
99 0 0 unless $class
100 0 0 unless $self->_args->{'class'}{$self->aliased($class)}
107 0 0 unless $self->_db->{$self->_ns}{$name}
115 0 24 unless $self->_args->{'db'}{$ns}
118 0 24 unless (exists $self->_args->{'db'}{$ns}{$name})
119 0 0 if (exists $self->_args->{'db'}{$ns}{'default'}) { }
0 0 elsif (exists $self->_args->{'db'}{'default'}{$name}) { }
146 0 0 if $@
147 0 0 if ($shorten and $module =~ /$search_path\:\:(.*?)$/)
158 0 0 if ($shorten and my $class_map = $self->_args->{'class'})
169 0 0 if $class
170 0 0 exists $self->_alias->{$alias} ? :