Branch Coverage

blib/lib/Test/MockDBI/Db.pm
Criterion Covered Total %
branch 45 58 77.5


line true false branch
20 7 84 if ($status)
23 1 6 if (ref $retval eq 'CODE')
32 0 84 unless ($statement)
108 9 3 unless $attr
113 6 6 if ($status)
116 1 5 if (ref $retval eq 'CODE')
128 2 4 if ($sth)
129 2 0 unless $$sth{'Active'}
130 0 0 unless $if_active ||= 0
132 0 0 if $if_active <= 1
133 0 0 if $if_active <= 2
136 4 0 if $sth
148 6 1 if ($status)
151 1 5 if (ref $retval eq 'CODE')
157 0 1 unless my $sth = $self->prepare($statement, $attr)
158 0 1 unless $sth->execute(@bind_values)
165 0 1 $rows == 0 ? :
181 1 7 if $$self{'AutoCommit'}
184 6 2 if ($status)
187 1 5 if (ref $retval eq 'CODE')
209 1 7 if $$self{'AutoCommit'}
212 6 2 if ($status)
215 1 5 if (ref $retval eq 'CODE')
232 3 2 if ($status)
235 1 2 if (ref $retval eq 'CODE')
252 3 0 if ($status)
255 1 2 if (ref $retval eq 'CODE')
271 6 1 if ($status)
274 1 5 if (ref $retval eq 'CODE')