Branch Coverage

blib/lib/Prancer/Session/Store/Database/Driver.pm
Criterion Covered Total %
branch 13 36 36.1


line true false branch
25 0 3 unless ($$config{'database'})
30 0 3 unless $config
60 0 9 if $INC{'threads.pm'}
65 6 3 if ($$handle{'dbh'}) { }
66 6 0 if ($$handle{'dbh'}{'Active'} and $$self{'_check_threshold'} and time - $$handle{'last_connection_check'} < $$self{'_check_threshold'}) { }
72 0 0 if ($self->_check_connection($$handle{'dbh'})) { }
77 0 0 if ($$handle{'dbh'})
88 2 0 if ($$handle{'dbh'})
105 1 0 defined $_ ? :
116 0 0 unless $dbh
118 0 0 if ($$dbh{'Active'} and my $result = $dbh->ping)
119 0 0 if (int $result) { }
159 1 1 defined $data ? :
168 0 0 defined $_ ? :
217 0 0 defined $_ ? :
248 0 0 defined $_ ? :
259 1 4 if ($$self{'_autopurge'})
261 1 0 if ($chance <= $$self{'_autopurge_probability'})