Branch Coverage

blib/lib/Algorithm/Retry.pm
Criterion Covered Total %
branch 21 26 80.7


line true false branch
100 0 26 unless $attrspec->{$arg}
104 12 49 if ($attrspec->{$attr}{'req'})
105 0 12 unless exists $args{$attr}
108 35 26 if (exists $attrspec->{$attr}{'default'})
121 1 57 unless $timestamp >= $self->{'_last_timestamp'}
123 17 40 $is_success ? :
126 2 55 if defined $self->{'max_delay'} and $delay > $self->{'max_delay'}
149 0 17 if $self->{'consider_actual_delay'}
151 0 17 if $delay < 0
163 3 40 if $self->{'max_attempts'} and $self->{'_attempts'} >= $self->{'max_attempts'}
167 5 35 if $self->{'consider_actual_delay'}
169 0 40 if $delay < 0
176 37 20 unless $delay and $self->{'jitter_factor'}