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 ? :
60 24 0 if $now
67 2 0 if $config
72 0 0 unless exists $self->_config->{$class}
81 24 0 unless ref $ns eq 'ARRAY'
83 0 24 if (my $class = delete $args->{'class'})
84 0 0 unless ref $class eq 'ARRAY'
98 0 0 unless $class
99 0 0 unless $self->_args->{'class'}{$self->aliased($class)}
106 0 0 unless $self->_db->{$ns or $self->_ns}{$name}
114 0 24 unless $self->_args->{'db'}{$ns}
117 0 24 unless (exists $self->_args->{'db'}{$ns}{$name})
118 0 0 if (exists $self->_args->{'db'}{'default'}{$name}) { }
0 0 elsif (exists $self->_args->{'db'}{$ns}{'default'}) { }
145 0 0 if $@
146 0 0 if ($shorten and $module =~ /$search_path\:\:(.*?)$/)
157 0 0 if ($shorten and my $class_map = $self->_args->{'class'})
168 0 0 if $class
169 0 0 exists $self->_alias->{$alias} ? :