Branch Coverage

blib/lib/Dancer/Plugin/Mango.pm
Criterion Covered Total %
branch 0 62 0.0


line true false branch
56 0 0 if blessed $arg and $arg->isa('Dancer::Core::DSL')
63 0 0 unless $settings
73 0 0 if (ref $arg eq 'HASH') { }
77 0 0 defined $arg ? :
79 0 0 unless ($conn_details)
89 0 0 if $INC{'threads.pm'}
94 0 0 if ($$handle{'dbh'}) { }
96 0 0 unless ($$conn_details{'connection_check_threshold'})
100 0 0 if ($$handle{'dbh'}{'Active'} and $$conn_details{'connection_check_threshold'} and time - $$handle{'last_connection_check'} < $$conn_details{'connection_check_threshold'}) { }
106 0 0 if (_check_connection($$handle{'dbh'})) { }
120 0 0 if ($$handle{'dbh'} = _get_connection($conn_details)) { }
124 0 0 if (ref $handle_key and ref $handle_key ne ref $def_handle)
158 0 0 defined $$settings{'port'} ? :
164 0 0 if defined $$settings{'db_name'}
167 0 0 if (defined $$settings{'username'} and defined $$settings{'password'})
172 0 0 if (defined $$settings{'db_credentials'} and ref $$settings{'db_credentials'} eq 'ARRAY')
176 0 0 if (defined $$settings{'ioloop'})
181 0 0 if (defined $$settings{'j'})
185 0 0 if (defined $$settings{'max_bson_size'})
189 0 0 if (defined $$settings{'max_connections'})
193 0 0 if (defined $$settings{'max_write_batch_size'})
197 0 0 if (defined $$settings{'protocol'})
202 0 0 if (defined $$settings{'w'})
206 0 0 if (defined $$settings{'wtimeout'})
213 0 0 unless ($dbh)
227 0 0 unless $dbh
237 0 0 unless (defined $lasterror)
259 0 0 if (not defined $name) { }
264 0 0 unless exists $$settings{'connections'}
267 0 0 if (my $named_settings = $$settings{'connections'}{$name}) { }
283 0 0 unless (exists $$return_settings{'connection_check_threshold'})