Branch Coverage

blib/lib/DBIx/Connector/Retry/MySQL.pm
Criterion Covered Total %
branch 31 42 73.8


line true false branch
87 0 3 if @_
196 2 36 if $timeout == -1
313 47 25 if ($type eq 'dbi') { }
25 0 elsif ($type eq 'session') { }
315 1 46 if $self->aggressive_timeouts
321 0 25 if $self->aggressive_timeouts
336 3 47 unless $self->_current_timeout and $self->enable_retry_handler
340 0 47 unless $dbi_attr and ref $dbi_attr eq "HASH"
354 3 25 unless $self->_current_timeout and $self->enable_retry_handler
370 25 0 if ($dbh)
374 0 25 if (my $error = $@)
376 0 0 unless $parsed_error->is_transient
377 0 0 if $self->retry_debug
425 1 22 unless $self->enable_retry_handler
429 1 21 unless $parsed_error->is_transient
432 2 19 if ($sleep_time == -1) { }
5 14 elsif ($sleep_time) { }
435 19 0 if ($new_timeout > 0)
442 6 13 unless ($parsed_error->error_type eq "lock")
459 8 7 if ($needs_resetting)
471 1 3 if $self->failed_attempt_count <= $self->retries_before_error_prefix