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
295 48 26 if ($type eq 'dbi') { }
26 0 elsif ($type eq 'session') { }
297 1 47 if $self->aggressive_timeouts
303 0 26 if $self->aggressive_timeouts
318 3 48 unless $self->_current_timeout and $self->enable_retry_handler
322 0 48 unless $dbi_attr and ref $dbi_attr eq 'HASH'
336 3 26 unless $self->_current_timeout and $self->enable_retry_handler
348 26 0 if ($dbh)
352 0 26 if (my $error = $@)
354 0 0 unless $parsed_error->is_transient
355 0 0 if $self->retry_debug
403 1 23 unless $self->enable_retry_handler
407 1 22 unless $parsed_error->is_transient
410 2 20 if ($sleep_time == -1) { }
5 15 elsif ($sleep_time) { }
413 20 0 if ($new_timeout > 0)
420 7 13 unless ($parsed_error->error_type eq 'lock')
437 8 7 if ($needs_resetting)
449 1 3 if $self->failed_attempt_count <= 1