Branch Coverage

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


line true false branch
21 0 48 if $drh
23 48 0 unless $methods_already_installed++
54 0 92 unless my $rows = delete $$attribs{'rows'}
56 4 88 exists $$attribs{$_} ? :
63 0 92 if (my $behave_like = $$attribs{'behave_like'})
68 8 84 if ($statement =~ /^\s*insert\b/) { }
70 0 8 unless my $NUM_OF_PARAMS = $$attribs{'NUM_OF_PARAMS'}
78 20 64 if ($$attribs{'NUM_OF_FIELDS'}) { }
52 12 elsif ($$attribs{'NAME'}) { }
0 12 elsif ($$attribs{'TYPE'}) { }
12 0 elsif (my $firstrow = $$rows[0]) { }
134 4 78 if $attrib eq 'AutoCommit'
143 86 550 if ($attrib eq 'AutoCommit')
144 86 0 if $value
152 4 4 unless @args >= 2
166 60 56 @_ ? :
168 60 56 if (my $hook = $$sth{'execute_hook'})
169 4 56 unless &$hook($sth, @_)
172 56 56 if ($$sth{'is_insert'}) { }
174 56 0 @_ ? :
176 0 56 if @$row != $NUM_OF_PARAMS
191 64 328 unless ($row)