blib/lib/Prancer/Plugin/Database/Driver.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 8 | 23 | 34.7 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
62 | 0 | 0 | 5 | $$handle{'dbh'}{'Active'} and $$self{'_check_threshold'} |
0 | 0 | 5 | $$handle{'dbh'}{'Active'} and $$self{'_check_threshold'} and time - $$handle{'last_connection_check'} < $$self{'_check_threshold'} | |
120 | 0 | 0 | 0 | $$dbh{'Active'} and my $result = $dbh->ping |
153 | 0 | 0 | 0 | $hr and $hl |
line | l | !l | condition |
---|---|---|---|
39 | 7 | 0 | $$config{'connection_check_threshold'} || 30 |
40 | 0 | 7 | $$config{'dsn_extra'} || {} |
41 | 0 | 7 | $$config{'on_connect'} || [] |
59 | 5 | 7 | $$self{'_handles'}{$pid_tid} || undef |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
102 | 7 | 0 | 0 | 'DBI'->connect(@{$$self{'_dsn'};}) || croak("${\$DBI::errstr;}\n") |