Branch Coverage

blib/lib/Sub/Retry/Extended.pm
Criterion Covered Total %
branch 21 24 87.5


line true false branch
15 0 18 unless my $code = delete $args{'code'}
16 0 18 if (ref $code ne 'CODE')
22 0 18 if ($retry_if and ref $retry_if ne 'CODE')
38 12 71 if (wantarray) { }
21 50 elsif (not defined wantarray) { }
40 3 9 unless (&$retry_if(@ret))
47 2 19 unless (&$retry_if())
54 4 46 unless (&$retry_if($ret))
59 68 3 if $times
62 1 2 if $err
68 3 142 if ($$timeout{'each'} and tv_interval($$lap{'each'}) > $$timeout{'each'})
73 3 139 if ($$timeout{'total'} and tv_interval($$lap{'start'}) > $$timeout{'total'})