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) |
159
|
0 |
0 |
defined $$settings{'port'} ? : |
165
|
0 |
0 |
if defined $$settings{'db_name'} |
168
|
0 |
0 |
if (defined $$settings{'username'} and defined $$settings{'password'}) |
173
|
0 |
0 |
if (defined $$settings{'db_credentials'} and ref $$settings{'db_credentials'} eq 'ARRAY') |
177
|
0 |
0 |
if (defined $$settings{'ioloop'}) |
182
|
0 |
0 |
if (defined $$settings{'j'}) |
186
|
0 |
0 |
if (defined $$settings{'max_bson_size'}) |
190
|
0 |
0 |
if (defined $$settings{'max_connections'}) |
194
|
0 |
0 |
if (defined $$settings{'max_write_batch_size'}) |
198
|
0 |
0 |
if (defined $$settings{'protocol'}) |
203
|
0 |
0 |
if (defined $$settings{'w'}) |
207
|
0 |
0 |
if (defined $$settings{'wtimeout'}) |
214
|
0 |
0 |
unless ($dbh) |
228
|
0 |
0 |
unless $dbh |
238
|
0 |
0 |
unless (defined $lasterror) |
260
|
0 |
0 |
if (not defined $name) { } |
265
|
0 |
0 |
unless exists $$settings{'connections'} |
268
|
0 |
0 |
if (my $named_settings = $$settings{'connections'}{$name}) { } |
284
|
0 |
0 |
unless (exists $$return_settings{'connection_check_threshold'}) |