Branch Coverage

blib/lib/Pinwheel/Database/Base.pm
Criterion Covered Total %
branch 32 32 100.0


line true false branch
30 8 6 if (not $$self{'dbh'} && $$self{'dbh'}->ping) { }
1 5 elsif ($dbh_age >= 300) { }
41 9 5 if ($reconnect)
57 2 1 if ($$self{'dbh'})
69 2 27 unless $$self{'dbh'} and $$self{'dbh_checked'}
102 5 191 unless $$self{'dbh'} and $$self{'dbh_checked'}
105 146 50 if ($sth)
106 143 3 unless $$sth{'Active'}
111 51 2 unless $transient
131 1 1 if $$sth{'Active'}
134 1 2 if $$sth{'Active'}
145 2 3 if (not $tables or scalar @$tables == 0)
147 1 1 unless $row
153 1 2 unless $row
161 2 2 if (not $tables or scalar @$tables == 0)
181 9 20 if ($j == @$columns or $j > 0 and $$columns[$j] eq 'id')