line |
true |
false |
branch |
26
|
0 |
6 |
if ref $class |
33
|
1 |
5 |
if defined $$instance |
39
|
0 |
5 |
unless (defined $config and ref $config and ref $config eq 'HASH') |
47
|
0 |
7 |
unless (defined $subconfig and ref $subconfig and ref $subconfig eq 'HASH' and $$subconfig{'driver'}) |
59
|
0 |
7 |
unless $module->can('handle') |
64
|
0 |
0 |
defined $_ ? : |
76
|
0 |
0 |
defined $_[0] && $_[0] eq 'Prancer::Plugin::Database' ? : |
|
13 |
0 |
ref $_[0] && $_[0]->isa('Prancer::Plugin::Database') ? : |
90
|
5 |
8 |
if ($connection) |
91
|
0 |
5 |
unless (exists $$self{'_handles'}{$connection}) |
101
|
6 |
2 |
if (scalar keys %{$$self{'_handles'};} == 1) |
107
|
1 |
1 |
if (exists $$self{'_handles'}{'default'}) |
113
|
1 |
0 |
if (scalar keys %{$$self{'_handles'};} > 1) |