Branch Coverage

blib/lib/Catalyst/Model/MongoDB.pm
Criterion Covered Total %
branch 1 36 2.7


line true false branch
30 0 2 $self->dbname ? :
39 0 0 if ($self->dbname and $self->has_username and $self->has_password)
40 0 0 if 'version'->parse($MongoDB::VERSION) < 1
55 0 0 unless $dbname
56 0 0 unless $dbname
57 0 0 unless ($self->dbs->{$dbname})
70 0 0 if ($param)
73 0 0 if (@params > 1) { }
78 0 0 if (@params == 1) { }
84 0 0 unless $dbname
85 0 0 unless $collname
91 0 0 unless $self->dbname
97 0 0 unless $self->dbname
104 0 0 unless $self->dbname
114 0 0 if (@params > 1) { }
119 0 0 if (@params == 1) { }
125 0 0 unless $dbname
126 0 0 unless $gridfsname