Branch Coverage

blib/lib/Retry/Backoff.pm
Criterion Covered Total %
branch 27 32 84.3


line true false branch
25 9 1 unless ($self->{'strategy'})
54 0 19 if (my $timestamp = $self->{'_needs_sleeping_until'})
57 0 0 unless $now >= $timestamp
63 3 16 if ($wantarray) { }
13 3 elsif (not defined $wantarray) { }
75 3 16 $wantarray ? :
83 2 17 if ($self->{'retry_if'})
89 12 7 if ($error) { }
90 4 8 if $self->{'on_failure'}
93 1 6 if $self->{'on_success'}
97 3 16 if ($delay == -1) { }
0 16 elsif ($self->{'non_blocking'}) { }
98 1 2 if $self->{'on_final_failure'} and $error
106 7 9 unless $error
109 2 8 $wantarray ? :
115 0 10 if @_ % 2