Branch Coverage

blib/lib/LWP/UserAgent/Plugin/Retry.pm
Criterion Covered Total %
branch 0 32 0.0


line true false branch
22 0 0 if (defined $r->{'config'}{'strategy'})
31 0 0 if (defined $r->{'config'}{'retry_if'}) { }
33 0 0 if ($ref eq 'Regexp' or not $ref) { }
0 0 elsif ($ref eq 'ARRAY') { }
0 0 elsif ($ref eq 'CODE') { }
34 0 0 unless $code =~ /$r->{'config'}{'retry_if'}/
36 0 0 unless grep {$_ == $code;} @{$$r{"config"}{"retry_if"};}
38 0 0 unless $r->{'config'}{'retry_if'}->($class, $r)
43 0 0 unless $code =~ /\A[5]/
47 0 0 unless $is_success
48 0 0 if ($r->{'ua'}{'_backoff_obj'})
50 0 0 if ($delay_on_success > 0)
62 0 0 if ($r->{'ua'}{'_backoff_obj'}) { }
64 0 0 if $delay < 0
68 0 0 if $r->{'config'}{'max_attempts'} and 1 + $r->{'retries'} >= $r->{'config'}{'max_attempts'}
76 0 0 unless $should_give_up