| blib/lib/Algorithm/Retry.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 20 | 23 | 86.9 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 126 | 43 | 12 | 2 | defined $self->{'max_delay'} and $delay > $self->{'max_delay'} |
| 163 | 38 | 2 | 3 | $self->{'max_attempts'} and $self->{'_attempts'} >= $self->{'max_attempts'} |
| 176 | 3 | 34 | 20 | $delay and $self->{'jitter_factor'} |
| line | l | !l | condition |
|---|---|---|---|
| 133 | 4 | 1 | $self->{'_last_delay'} //= 0 |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 109 | 11 | 1 | 23 | $args{$attr} //= $attrspec->{$attr}{'default'} |
| 119 | 48 | 10 | 0 | $self->{'_last_timestamp'} //= $timestamp |
| 143 | 17 | 1 | 0 | $timestamp //= &Algorithm::Retry::time() |
| 159 | 42 | 1 | 0 | $timestamp //= &Algorithm::Retry::time() |