Branch Coverage

blib/lib/Mongoose.pm
Criterion Covered Total %
branch 6 32 18.7


line true false branch
45 23 1 @_ == 1 ? :
49 24 0 if $now or defined wantarray
56 2 0 if $config
61 0 0 unless exists $self->_config->{$class}
69 0 24 if (my $class = delete $args->{'class'})
70 0 0 unless ref $class eq 'ARRAY'
81 0 0 unless $class
82 0 0 unless $self->_args->{'class'}{$class}
89 0 0 unless $self->_db->{$name}
99 24 0 unless ref $self->_client->{$name}
107 0 0 if $self->_client->{$name}
108 0 0 if $self->connect($name)
120 0 0 if $@
121 0 0 if ($shorten and $module =~ /$search_path\:\:(.*?)$/)
134 0 0 if $class
135 0 0 exists $self->_alias->{$alias} ? :