Branch Coverage

blib/lib/DBIx/LogAny/db.pm
Criterion Covered Total %
branch 47 142 33.1


line true false branch
34 0 9 if $h and $h->{'logmask'} & 1024
47 0 0 if $h->{'logmask'} & 1
55 2 3 if ($h->{'logmask'} & 513 and not +(caller) =~ /^DBIx::LogAny/o and not +(caller) =~ /^DBD::/o)
62 5 0 if ($sth)
75 0 0 if ($h->{'logmask'} & 513 and not +(caller) =~ /^DBIx::LogAny/o and not +(caller) =~ /^DBD::/o)
83 0 0 if ($sth)
96 3 0 if $h->{'logmask'} & 513
100 1 2 if (not defined $affected) { }
0 2 elsif (defined $affected and $affected eq '0E0' and $h->{'logmask'} & 32) { }
1 2 elsif ($affected ne '0E0' and $h->{'logmask'} & 1) { }
103 0 1 if $h->{'logmask'} & 16 and not $h->{'logmask'} & 1
109 0 1 unless defined $affected
120 0 0 if ($h->{'logmask'} & 513)
121 0 0 if (scalar @args > 0 and ref $args[0]) { }
132 0 0 if (wantarray) { }
135 0 0 if $h->{'logmask'} & 2
141 0 0 if $h->{'logmask'} & 2
151 0 0 if ($h->{'logmask'} & 513)
152 0 0 if (scalar @args > 0 and ref $args[0]) { }
165 0 0 if $h->{'logmask'} & 2
174 0 0 if ($h->{'logmask'} & 513)
175 0 0 if (scalar @args > 0 and ref $args[0]) { }
196 1 0 if ($h->{'logmask'} & 513)
197 1 0 if (scalar @args > 0 and ref $args[0]) { }
210 0 1 if $h->{'logmask'} & 2
218 0 0 if ($h->{'logmask'} & 513)
219 0 0 if (scalar @args > 0 and ref $args[0]) { }
250 0 1 if (exists $attr->{'dbix_la_logger'}) { }
0 1 elsif (exists $attr->{'dbix_la_category'}) { }
260 0 1 if exists $attr->{'dbix_la_logmask'}
263 0 1 if exists $attr->{'dbix_la_ignore_err_regexp'}
266 1 0 unless exists $h{'logmask'}
277 0 1 if ($h{'ll_loaded'})
288 1 0 if ($h{'logmask'} & 16)
290 0 1 if exists $attr->{'HandleError'}
292 0 1 if exists $attr->{'HandleSetErr'}
303 0 0 if ($h->{'logmask'} & 4)
313 1 0 if ($dbh)
320 1 0 if (not $@ and $h and defined $h->{'logger'})
321 1 0 if ($h->{'logmask'} & 4)
335 0 0 if $h->{'logmask'} & 8
345 0 0 if $h->{'logmask'} & 8
355 0 0 if $h->{'logmask'} & 8
366 0 0 if $h->{'logmask'} & 1
370 0 0 if $h->{'logmask'} & 1
390 1 0 if $h and exists $h->{'logger'}
391 0 1 unless $lh
393 0 1 unless ($lh->is_fatal)
397 0 1 if ($h and exists $h->{'err_regexp'})
398 0 0 if ($dbh->err =~ /$h->{'err_regexp'}/)
407 1 0 if ($DBI::lasth)
409 0 1 if $DBI::lasth->{'Type'}
412 1 0 if $DBI::lasth->{'Statement'}
417 0 1 if ($type eq 'st') { }
424 1 0 if exists $h->{'Statement'}
428 0 1 if $dbh->{'Statement'} and (exists $h->{'Statement'} and $dbh->{'Statement'} ne $h->{'Statement'})
431 1 0 exists $dbh->{'Name'} ? :
432 1 0 exists $dbh->{'Username'} ? :
437 1 0 if $handle->errstr and $handle->errstr ne $msg
440 0 0 if (exists $h->{'ParamValues'} and $h->{'ParamValues'})
447 0 1 if ($type eq 'st')
449 0 0 if ($handle->{'ParamValues'})
457 0 0 if $handle->{'ParamArrays'}
463 0 1 if (scalar @substmts)
469 0 0 if $stmt->{'Statement'} and (exists $h->{'Statement'} and $h->{'Statement'} ne $stmt->{'Statement'})
470 0 0 if (exists $stmt->{'ParamValues'} and $stmt->{'ParamValues'})
480 0 1 if (exists $dbh->{'Callbacks'})
491 0 1 if ($h and exists $h->{'ErrorHandler'}) { }
508 1 0 if ($handle)
511 0 1 if exists $handle->{'ParamValues'}
512 0 1 if exists $h->{'HandleSetErr'}