Branch Coverage

blib/lib/Prancer/Plugin/Database/Driver.pm
Criterion Covered Total %
branch 8 30 26.6


line true false branch
21 0 0 defined $_ ? :
26 0 7 unless ($$config{'database'})
56 0 12 if $INC{'threads.pm'}
61 5 7 if ($$handle{'dbh'}) { }
62 5 0 if ($$handle{'dbh'}{'Active'} and $$self{'_check_threshold'} and time - $$handle{'last_connection_check'} < $$self{'_check_threshold'}) { }
68 0 0 if ($self->_check_connection($$handle{'dbh'})) { }
76 0 0 if ($$handle{'dbh'})
87 7 0 if ($$handle{'dbh'})
107 0 0 defined $_ ? :
118 0 0 unless $dbh
120 0 0 if ($$dbh{'Active'} and my $result = $dbh->ping)
121 0 0 if (int $result) { }
144 0 7 unless @right
145 0 7 if @right > 1
153 0 0 if ($hr and $hl) { }