| lib/CGI/Application/Plugin/Throttle.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 12 | 23 | 52.1 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 479 | 32 | 0 | 1 | scalar @throttle_keys == 1 and not defined $throttle_keys[0] |
| 566 | 0 | 0 | 27 | defined $filter->{$_} && $filter->{$_} |
| 0 | 0 | 27 | defined $lookup->{$_} && $lookup->{$_} |
| line | l | !l | condition |
|---|---|---|---|
| 160 | 34 | 0 | $supplied{'prefix'} || 'THROTTLE' |
| 170 | 17 | 17 | $supplied{'throttle_keys_callback'} || \&CGI::Application::Plugin::Throttle::_get_default_throttle_keys |
| 316 | 30 | 0 | $self->{'redis'} || (return) |
| 462 | 60 | 30 | $throttle_keys[$i++] || '* * *' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 147 | 0 | 34 | 0 | ref $proto || $proto |
| 571 | 4 | 0 | 0 | defined $filter->{$_} or defined $lookup->{$_} |