Branch Coverage

blib/lib/Prancer/Session/Store/Database/Driver.pm
Criterion Covered Total %
branch 15 42 35.7


line true false branch
25 0 3 unless ($$config{'database'})
30 0 3 unless $config
62 0 9 if $INC{'threads.pm'}
67 6 3 if ($$handle{'dbh'}) { }
68 6 0 if ($$handle{'dbh'}{'Active'} and $$self{'_check_threshold'} and time - $$handle{'last_connection_check'} < $$self{'_check_threshold'}) { }
74 0 0 if ($self->_check_connection($$handle{'dbh'})) { }
79 0 0 if ($$handle{'dbh'})
90 2 0 if ($$handle{'dbh'})
110 1 0 defined $_ ? :
121 0 0 unless $dbh
123 0 0 if ($$dbh{'Active'} and my $result = $dbh->ping)
124 0 0 if (int $result) { }
164 1 1 defined $data ? :
173 0 0 defined $_ ? :
222 0 0 defined $_ ? :
253 0 0 defined $_ ? :
264 1 4 if ($$self{'_autopurge'})
266 1 0 if ($chance <= $$self{'_autopurge_probability'})
291 0 3 unless @right
292 0 3 if @right > 1
300 0 0 if ($hr and $hl) { }