blib/lib/Plack/Middleware/Auth/JWT.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 9 | 11 | 81.8 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
55 | 3 | 12 | 16 | $self->token_header_name and $env->{'HTTP_AUTHORIZATION'} |
105 | 14 | 0 | 1 | $env->{'HTTP_ACCEPT'} and $env->{'HTTP_ACCEPT'} =~ m[application/json]i |
line | l | !l | condition |
---|---|---|---|
102 | 9 | 6 | shift() || 'Authorization required' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
80 | 10 | 0 | 13 | $@ or not $claims |