blib/lib/Sys/AlarmCall.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 16 | 30 | 53.3 |
line | true | false | branch |
---|---|---|---|
37 | 0 | 2 | unless $timeout >= 1 |
43 | 0 | 2 | if ($old_alarm and $timeout > $old_alarm) |
50 | 0 | 2 | if (defined ref $sub and ref $sub eq 'CODE') { } |
0 | 2 | elsif ($sub =~ /^->/) { } | |
2 | 0 | elsif ($#_ < @ARG_STRINGS) { } | |
68 | 0 | 2 | if ($wantarray) { } |
75 | 1 | 1 | if ($alarmed) |
77 | 1 | 1 | $old_handler ? : |
79 | 0 | 2 | if ($old_alarm) |
81 | 0 | 0 | if ($old_alarm > 0) { } |
93 | 0 | 1 | $wantarray ? : |
0 | 0 | $wantarray ? : | |
1 | 1 | if ($alarmed) { } | |
0 | 1 | elsif ($@) { } | |
95 | 0 | 1 | $wantarray ? : |