Branch Coverage

blib/lib/DBD/NullP.pm
Criterion Covered Total %
branch 18 34 52.9


line true false branch
21 0 14 if $drh
43 0 24 unless my $dbh = (shift())->SUPER::connect(@_)
63 8 8 if ($type == 29)
76 4 4 if (defined $type and $type eq '%' and grep {$_ eq '' if defined $_;} $catalog, $schema, $table) { }
4 0 elsif (defined $catalog and $catalog eq '%' and grep {$_ eq '' if defined $_;} $schema, $table) { }
77 12 0 if defined $_
82 8 0 if defined $_
117 25 170 if ($attrib eq 'AutoCommit') { }
0 170 elsif ($attrib eq 'nullp_set_err') { }
118 0 25 unless $value
121 25 0 $value ? :
145 0 6000 if defined $attr
153 2 0 if ($sth->{'Statement'} =~ /^ \s* SELECT \s+/imsx) { }
0 0 elsif ($sth->{'Statement'} =~ /^ \s* SLEEP \s+ (\S+) /imsx) { }
0 0 elsif ($sth->{'Statement'} =~ /^ \s* ERROR \s+ (\d+) \s* (.*) /imsx) { }
164 0 0 if (eval { do { require Time::HiRes; defined &Time::HiRes::sleep } }) { }
182 8 20 unless ($data and @$data)