blib/lib/Time/Out.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 18 | 22 | 81.8 |
line | true | false | branch |
---|---|---|---|
11 | 0 | 3 | if ('Time::HiRes'->can('alarm')) |
14 | 0 | 3 | if ('Time::HiRes'->can('time')) |
25 | 1 | 16 | unless $secs |
27 | 0 | 17 | unless defined $code and UNIVERSAL::isa($code, 'CODE') |
40 | 1 | 16 | if ($prev_alarm and $prev_alarm < $secs) { } |
57 | 2 | 15 | if ($new_alarm > 0) { } |
1 | 14 | elsif ($prev_alarm) { } | |
66 | 11 | 5 | if ($dollar_at) |
67 | 8 | 3 | if (ref $dollar_at and $dollar_at eq $code) { } |
71 | 2 | 1 | if (not ref $dollar_at) { } |
81 | 0 | 13 | wantarray ? : |