Branch Coverage

blib/lib/MySQL/Easy.pm
Criterion Covered Total %
branch 0 104 0.0


line true false branch
34 0 0 unless $$this{'sth'}
37 0 0 if $sub =~ /::(\w+)$/u
40 0 0 if ($$this{'sth'}->can($sub)) { }
50 0 0 if ($wa) { }
60 0 0 if ($warn and not $err)
65 0 0 if ($err)
75 0 0 if ($err =~ /MySQL server has gone away/u)
76 0 0 if ($sub eq 'execute') { }
80 0 0 if --$tries > 0
90 0 0 $wa ? :
132 0 0 if $sub =~ /::(\w+)$/u
136 0 0 if ($handle->can($sub)) { }
144 0 0 if (wantarray) { }
145 0 0 ref $_[0] eq 'MySQL::Easy::sth' ? :
150 0 0 ref $_[0] eq 'MySQL::Easy::sth' ? :
159 0 0 if ($warn and not $err)
164 0 0 if ($err)
173 0 0 $wa ? :
195 0 0 unless $sth->execute
201 0 0 if (@warnings)
216 0 0 unless $$this{'dbase'}
217 0 0 if ref $$this{'dbase'} and $$this{'dbase'}->isa('DBI::db')
220 0 0 ref $args ? :
222 0 0 if $tr and $$this{'dbh'}
224 0 0 if (ref $args)
228 0 0 if ($this->can($f = "set_$k")) { }
242 0 0 unless @_
244 0 0 if $@
250 0 0 unless @_
258 0 0 unless @_
287 0 0 unless $r
289 0 0 wantarray ? :
298 0 0 unless $r
337 0 0 if $$this{'dbh'}
344 0 0 if defined $$this{'dbh'} and $$this{'dbh'}->ping
347 0 0 unless $$this{'user'} and $$this{'pass'}
349 0 0 unless $$this{'host'}
350 0 0 unless $$this{'port'}
351 0 0 unless $$this{'dbase'}
352 0 0 unless $$this{'trace'}
354 0 0 if ($$this{'dbh'})
364 0 0 $$this{'raise'} ? :
0 0 $$this{'raise'} ? :
380 0 0 unless $$this{'dbh'}
391 0 0 if $ENV{$USER_ENV} and $ENV{$PASS_ENV}
396 0 0 unless -f $file
397 0 0 unless open $fh, $file
400 0 0 if /user\s*=\s*(.+)/u
401 0 0 if /password\s*=\s*(.+)/u
403 0 0 if $user and $pass
449 0 0 unless $sth->execute
450 0 0 unless $sth->bind_columns(@_)