Branch Coverage

blib/lib/Prancer/Plugin/Database/Driver.pm
Criterion Covered Total %
branch 6 24 25.0


line true false branch
21 0 0 defined $_ ? :
26 0 7 unless ($$config{'database'})
54 0 12 if $INC{'threads.pm'}
59 5 7 if ($$handle{'dbh'}) { }
60 5 0 if ($$handle{'dbh'}{'Active'} and $$self{'_check_threshold'} and time - $$handle{'last_connection_check'} < $$self{'_check_threshold'}) { }
66 0 0 if ($self->_check_connection($$handle{'dbh'})) { }
74 0 0 if ($$handle{'dbh'})
85 7 0 if ($$handle{'dbh'})
102 0 0 defined $_ ? :
113 0 0 unless $dbh
115 0 0 if ($$dbh{'Active'} and my $result = $dbh->ping)
116 0 0 if (int $result) { }