Branch Coverage

blib/lib/DBD/mysqlPP.pm
Criterion Covered Total %
branch 11 100 11.0


line true false branch
16 0 1 if $DBD::mysqlPP::drh
38 0 0 unless defined $dsn
41 0 0 if ($dsn =~ /([^:;]*)[:;](.*)/) { }
49 0 0 if ($val =~ /([^=]*)=(.*)/) { }
52 0 0 if ($var eq 'hostname' or $var eq 'host') { }
0 0 elsif ($var eq 'db' or $var eq 'dbname') { }
64 0 0 unless (defined $$hash{$var})
120 0 0 if ($@)
148 1 8 unless defined $statement
168 0 0 if ($c eq '"' or $c eq q[']) { }
0 0 elsif ($c eq '?') { }
171 0 0 if $c eq $end
172 0 0 if $c eq '\\'
200 0 0 if ($dbh->FETCH('Warn'))
210 0 0 if ($dbh->FETCH('Warn'))
226 0 0 if $mysql->is_error
227 0 0 if ($mysql->has_selected_record)
234 0 0 if ($@)
237 0 0 $mysql->is_error ? :
252 0 0 if $mysql->is_error
253 0 0 if ($mysql->has_selected_record)
260 0 0 if ($@)
263 0 0 $mysql->is_error ? :
287 0 0 if $key eq 'AutoCommit'
288 0 0 if $key =~ /^(?:mysqlpp_.*|thread_id|mysql_insertid)$/
298 0 0 if ($key eq 'AutoCommit') { }
0 0 elsif ($key =~ /^(?:mysqlpp_.*|thread_id|mysql_insertid)$/) { }
299 0 0 unless $value
328 0 0 ref $attr ? :
329 0 0 if ($type)
343 0 0 @bind_values ? :
346 0 0 if (@$params != $num_param)
356 0 0 if $mysql->is_error
363 0 0 if ($mysql->has_selected_record)
371 0 0 if ($@)
378 0 0 $result ? :
0 0 $mysql->is_error ? :
390 0 0 unless $row
392 0 0 if ($sth->FETCH('ChopBlanks'))
412 0 0 if $key eq 'AutoCommit'
413 0 0 if $key eq 'NAME'
414 0 0 if $key =~ /^mysqlpp_/
424 0 0 if ($key eq 'AutoCommit') { }
0 0 elsif ($key eq 'NAME') { }
0 0 elsif ($key =~ /^mysqlpp_/) { }
425 0 0 unless $value
447 13 25 if ($splitted[$i] eq '?' and exists $$params[$param_idx]) { }
3 22 elsif ($splitted[$i] =~ qr/\bLIMIT\b/i) { }
448 5 8 $limit_found && $$params[$param_idx] =~ qr/^\d+$/ ? :
451 2 5 if (exists $splitted[$i + 1] and not $splitted[$i + 1] =~ qr/,/ and not $splitted[$i + 1] =~ qr/\bOFFSET\b/i)