Branch Coverage

blib/lib/DBIx/RetryConnect.pm
Criterion Covered Total %
branch 18 38 47.3


line true false branch
121 0 2 unless @imports
125 1 1 @imports && ref $imports[0] ? :
127 0 2 if defined $options and ref $options ne 'CODE'
130 0 2 if ($ENV{'DBIX_RETRYCONNECT_VERBOSE'})
131 0 0 defined $options ? :
139 2 0 if @$configs == 1
154 0 2 unless my $orig_connect_subref = do { no strict 'refs'; *$connect_method{'CODE'} }
159 0 2 if (($ENV{'DBIX_RETRYCONNECT_VERBOSE'} || 0) >= 2)
169 3 6 if $dbh
173 0 1 unless $options
177 0 6 unless $retry->pause
197 1 0 if $dynamic_config
230 0 1 if ($$self{'verbose'} >= 2)
243 0 6 if $$self{'total_delay'} <= 0
245 0 6 if ($$self{'next_delay'} > $$self{'max_delay'})
253 0 6 if ($$self{'verbose'} >= 3)
256 0 0 if $$self{'verbose'} >= 4
265 0 0 unless defined $errstr
281 0 6 unless $this_delay