Condition Coverage

blib/lib/Algorithm/Backoff.pm
Criterion Covered Total %
condition 27 35 77.1


and 3 conditions

line !l l&&!r l&&r condition
207 0 0 120 $delay and $self->{'jitter_factor'}
232 125 48 31 defined $self->{'max_delay'} and $delay > $self->{'max_delay'}
235 0 165 39 defined $self->{'min_delay'} and $delay < $self->{'min_delay'}
259 0 118 3 defined $self->{'max_actual_duration'} and $self->{'max_actual_duration'} > 0
118 2 1 defined $self->{'max_actual_duration'} and $self->{'max_actual_duration'} > 0 and $timestamp - $self->{'_start_timestamp'} >= $self->{'max_actual_duration'}
263 113 4 3 $self->{'max_attempts'} and $self->{'_attempts'} >= $self->{'max_attempts'}

or 2 conditions

line l !l condition
199 8 2 $self->{'_prev_delay'} //= 0

or 3 conditions

line l !l&&r !l&&!r condition
188 23 1 69 $args{$attr} //= $attrspec->{$attr}{'default'}
192 1 18 0 $args{'_start_timestamp'} //= &Algorithm::Backoff::time()
216 187 18 0 $self->{'_last_timestamp'} //= $timestamp
245 87 1 0 $timestamp //= &Algorithm::Backoff::time()
255 120 1 0 $timestamp //= &Algorithm::Backoff::time()