| blib/lib/Prancer/Plugin/Database/Driver.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 6 | 16 | 37.5 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 60 | 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'} | |
| 115 | 0 | 0 | 0 | $$dbh{'Active'} and my $result = $dbh->ping |
| line | l | !l | condition |
|---|---|---|---|
| 39 | 7 | 0 | $$config{'connection_check_threshold'} || 30 |
| 57 | 5 | 7 | $$self{'_handles'}{$pid_tid} || undef |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 100 | 7 | 0 | 0 | 'DBI'->connect(@{$$self{'_dsn'};}) || croak("${\$DBI::errstr;}\n") |