blib/lib/Action/CircuitBreaker.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 15 | 18 | 83.3 |
line | true | false | branch |
---|---|---|---|
78 | 6 | 40 | if (my $timestamp = $self->_circuit_open_until) |
81 | 5 | 1 | unless $seconds * 1000 + int($microseconds / 1000) >= $timestamp |
84 | 1 | 0 | if $self->has_on_circuit_close |
93 | 0 | 41 | if (wantarray) { } |
30 | 11 | elsif (not defined wantarray) { } | |
105 | 0 | 41 | $wantarray ? : |
111 | 39 | 2 | if ($self->error_if_code->($error, $h)) { } |
113 | 4 | 35 | if ($self->_current_retries_number >= $self->max_retries_number) |
117 | 1 | 3 | if $self->has_on_circuit_open |