line |
true |
false |
branch |
57
|
0 |
0 |
if blessed $arg and $arg->isa('Dancer::Core::DSL') |
64
|
0 |
0 |
unless $settings |
74
|
0 |
0 |
if (ref $arg eq 'HASH') { } |
78
|
0 |
0 |
defined $arg ? : |
80
|
0 |
0 |
unless ($conn_details) |
90
|
0 |
0 |
if $INC{'threads.pm'} |
95
|
0 |
0 |
if ($$handle{'dbh'}) { } |
97
|
0 |
0 |
unless ($$conn_details{'connection_check_threshold'}) |
101
|
0 |
0 |
if ($$handle{'dbh'}{'Active'} and $$conn_details{'connection_check_threshold'} and time - $$handle{'last_connection_check'} < $$conn_details{'connection_check_threshold'}) { } |
107
|
0 |
0 |
if (_check_connection($$handle{'dbh'})) { } |
121
|
0 |
0 |
if ($$handle{'dbh'} = _get_connection($conn_details)) { } |
125
|
0 |
0 |
if (ref $handle_key and ref $handle_key ne ref $def_handle) |
154
|
0 |
0 |
defined $$settings{'port'} ? : |
160
|
0 |
0 |
if defined $$settings{'db_name'} |
163
|
0 |
0 |
if (defined $$settings{'username'} and defined $$settings{'password'}) |
168
|
0 |
0 |
if (defined $$settings{'db_credentials'} and ref $$settings{'db_credentials'} eq 'ARRAY') |
172
|
0 |
0 |
if (defined $$settings{'ioloop'}) |
177
|
0 |
0 |
if (defined $$settings{'j'}) |
181
|
0 |
0 |
if (defined $$settings{'max_bson_size'}) |
185
|
0 |
0 |
if (defined $$settings{'max_connections'}) |
189
|
0 |
0 |
if (defined $$settings{'max_write_batch_size'}) |
193
|
0 |
0 |
if (defined $$settings{'protocol'}) |
198
|
0 |
0 |
if (defined $$settings{'w'}) |
202
|
0 |
0 |
if (defined $$settings{'wtimeout'}) |
209
|
0 |
0 |
unless ($dbh) |
223
|
0 |
0 |
unless $dbh |
233
|
0 |
0 |
unless (defined $lasterror) |
255
|
0 |
0 |
if (not defined $name) { } |
260
|
0 |
0 |
unless exists $$settings{'connections'} |
263
|
0 |
0 |
if (my $named_settings = $$settings{'connections'}{$name}) { } |
279
|
0 |
0 |
unless (exists $$return_settings{'connection_check_threshold'}) |