Branch Coverage

blib/lib/DBD/Sponge.pm
Criterion Covered Total %
branch 34 44 77.2


line true false branch
22 0 48 if $drh
24 48 0 unless $methods_already_installed++
55 0 92 unless my $rows = delete $attribs->{'rows'}
60 4 88 exists $attribs->{$_} ? :
64 0 92 if (my $behave_like = $attribs->{'behave_like'})
69 8 84 if ($statement =~ /^\s*insert\b/) { }
72 0 8 unless my $NUM_OF_PARAMS = $attribs->{'NUM_OF_PARAMS'}
79 20 64 if ($attribs->{'NUM_OF_FIELDS'}) { }
52 12 elsif ($attribs->{'NAME'}) { }
0 12 elsif ($attribs->{'TYPE'}) { }
12 0 elsif (my $firstrow = $rows->[0]) { }
135 4 78 if $attrib eq 'AutoCommit'
144 86 550 if ($attrib eq 'AutoCommit')
145 86 0 if $value
153 4 4 unless @args >= 2
167 60 56 @_ ? :
169 60 56 if (my $hook = $sth->{'execute_hook'})
170 4 56 unless &$hook($sth, @_)
173 56 56 if ($sth->{'is_insert'}) { }
175 56 0 @_ ? :
177 0 56 if @$row != $NUM_OF_PARAMS
192 64 328 unless ($row)