| blib/lib/JSON/WebToken.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 20 | 22 | 90.9 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 76 | 3 | 18 | 1 | $algorithm ne 'none' and not defined $secret |
| 107 | 1 | 21 | 1 | $is_verify and not defined $secret |
| 115 | 1 | 1 | 20 | @$segments >= 2 and @$segments <= 4 |
| 129 | 3 | 1 | 15 | $$header{'alg'} ne 'none' and $is_verify |
| 145 | 15 | 2 | 1 | $algorithm eq 'none' and $crypto_segment |
| 169 | 0 | 0 | 2 | $algorithm and $signing_class |
| line | l | !l | condition |
|---|---|---|---|
| 65 | 14 | 8 | $algorithm ||= 'HS256' |
| 66 | 1 | 21 | $extra_headers ||= {} |