blib/lib/Plack/Middleware/Throttle/Lite.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 16 | 22 | 72.7 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
205 | 34 | 2 | 59 | $self->backend->reqs_done >= $self->maxreq and not $self->privileged |
line | l | !l | condition |
---|---|---|---|
148 | 3 | 26 | ref $self->backend || 'NA' |
173 | 9 | 36 | ref $self->routes || 'NA' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
108 | 9 | 1 | 0 | $prefix || $self->defaults->{'header_prefix'} |
131 | 43 | 0 | 0 | $1 || $self->defaults->{'requests'} |
132 | 43 | 0 | 0 | $$units{$5} || $self->defaults->{'units'} |
266 | 61 | 1 | 33 | $self->backend->reqs_done < $self->backend->reqs_max or $self->privileged |
280 | 69 | 26 | 0 | $$env{'REMOTE_USER'} || $self->defaults->{'username'} |