Branch Coverage

blib/lib/Catalyst/Model/MongoDB.pm
Criterion Covered Total %
branch 4 46 8.7


line true false branch
32 0 0 $self->dbname ? :
0 2 $self->dbname ? :
0 2 $self->has_username ? :
0 2 $self->has_password ? :
0 2 'version'->parse($MongoDB::VERSION) < 1 ? :
51 0 0 if ($self->dbname and $self->has_username and $self->has_password)
52 0 0 if 'version'->parse($MongoDB::VERSION) < 1
54 0 0 if 'version'->parse($MongoDB::VERSION) > 1
69 0 0 unless $dbname
70 0 0 unless $dbname
71 0 0 unless ($self->dbs->{$dbname})
84 0 0 if ($param)
87 0 0 if (@params > 1) { }
92 0 0 if (@params == 1) { }
98 0 0 unless $dbname
99 0 0 unless $collname
105 0 0 unless $self->dbname
111 0 0 unless $self->dbname
118 0 0 unless $self->dbname
128 0 0 if (@params > 1) { }
133 0 0 if (@params == 1) { }
139 0 0 unless $dbname
140 0 0 unless $gridfsname