Branch Coverage

blib/lib/DBIx/LogAny.pm
Criterion Covered Total %
branch 17 54 31.4


line true false branch
41 0 15 unless defined $h
43 0 15 unless $h->{'logger'}->is_debug
50 1 0 if &blessed($args[0]) and &blessed($args[0])->isa('DBI::st') and defined $args[0]{'Statement'}
52 2 13 if (scalar @args > 1) { }
0 13 elsif (ref $thing eq 'CODE') { }
0 13 elsif (ref $args[0]) { }
6 7 elsif (scalar @args == 1) { }
61 0 6 if (not defined $args[0]) { }
77 0 0 unless $h->{'logger'}->is_info
88 0 0 unless $h->{'logger'}->is_warn
93 0 0 if (scalar @args > 1) { }
0 0 elsif (ref $args[0]) { }
110 0 0 unless $h->{'logger'}->is_error
115 0 0 if (scalar @args > 1) { }
0 0 elsif (ref $thing eq 'CODE') { }
0 0 elsif (ref $args[0]) { }
141 0 0 if scalar @_ != 2 or not defined $_[1]
148 0 0 unless (exists $m->{$item})
158 0 0 if scalar @_ != 3 or not defined $_[1]
165 0 0 unless (exists $m->{$item})
178 0 1 unless $dbh
182 1 0 if ($h->{'logmask'} & 4)
189 1 0 defined $dsn ? :
1 0 defined $user ? :
1 0 if $h->{'logger'}->is_debug
196 1 0 if $h->{'logger'}->is_info
206 0 1 if ($h->{'logger'}->is_debug and $h->{'logmask'} & 128 and $h->{'driver'} eq 'Oracle') { }