Branch Coverage

blib/lib/Fey/DBIManager/Source.pm
Criterion Covered Total %
branch 25 30 83.3


line true false branch
125 1 12 if ($self->_has_dbh)
170 22 5 if $self->auto_refresh
185 9 3 if (my $pc = $self->post_connect)
210 0 0 unless $_[0] =~ /Already (?:with)?in a transaction/i or $_[0] =~ /rollback ineffective/
222 2 1 if ($@)
223 2 0 unless $$dbh{'AutoCommit'}
230 9 1 'threads'->can('tid') ? :
237 13 0 if $self->_threaded
246 1 26 if ($self->_pid != $$)
252 1 26 if ($self->_threaded and $self->_tid != 'threads'->tid)
258 2 25 if ($dbh and not $$dbh{'Active'} && $self->_ping_dbh)
263 4 23 unless $self->_has_dbh
271 0 24 unless defined $self->ping_interval
272 11 13 if $now - $self->_last_ping < $self->ping_interval
274 12 1 if ($self->_dbh->ping) { }