Branch Coverage

blib/lib/Algorithm/Backoff.pm
Criterion Covered Total %
branch 27 30 90.0


line true false branch
178 1 59 if $arg =~ /\A(_start_timestamp)\z/
179 0 59 unless $attrspec->{$arg}
183 28 131 if ($attrspec->{$attr}{'req'})
184 0 28 unless exists $args{$attr}
187 93 66 if (exists $attrspec->{$attr}{'default'})
207 0 120 unless $delay and $self->{'jitter_factor'}
218 1 204 unless $timestamp >= $self->{'_last_timestamp'}
221 87 117 $is_success ? :
225 10 194 if $self->{'consider_actual_delay'}
228 120 84 if $self->{'jitter_factor'}
232 31 173 if defined $self->{'max_delay'} and $delay > $self->{'max_delay'}
233 5 199 if $delay < 0
235 39 165 if defined $self->{'min_delay'} and $delay < $self->{'min_delay'}
259 1 120 if defined $self->{'max_actual_duration'} and $self->{'max_actual_duration'} > 0 and $timestamp - $self->{'_start_timestamp'} >= $self->{'max_actual_duration'}
263 3 117 if $self->{'max_attempts'} and $self->{'_attempts'} >= $self->{'max_attempts'}