blib/lib/Retry/Backoff.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 25 | 30 | 83.3 |
line | true | false | branch |
---|---|---|---|
25 | 8 | 1 | unless ($self->{'strategy'}) |
53 | 0 | 16 | if (my $timestamp = $self->{'_needs_sleeping_until'}) |
56 | 0 | 0 | unless $now >= $timestamp |
62 | 3 | 13 | if ($wantarray) { } |
10 | 3 | elsif (not defined $wantarray) { } | |
74 | 3 | 13 | $wantarray ? : |
82 | 2 | 14 | if ($self->{'retry_if'}) |
88 | 9 | 7 | if ($error) { } |
89 | 1 | 8 | if $self->{'on_failure'} |
92 | 1 | 6 | if $self->{'on_success'} |
96 | 2 | 14 | if ($delay == -1) { } |
0 | 14 | elsif ($self->{'non_blocking'}) { } | |
104 | 7 | 7 | unless $error |
107 | 2 | 7 | $wantarray ? : |
113 | 0 | 9 | if @_ % 2 |