blib/lib/JSON/WebToken.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 20 | 22 | 90.9 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
78 | 4 | 15 | 1 | $algorithm ne 'none' and not defined $secret |
127 | 1 | 22 | 1 | $verify_signature and not defined $secret |
135 | 1 | 1 | 21 | @$segments >= 2 and @$segments <= 4 |
149 | 5 | 1 | 14 | $$header{'alg'} ne 'none' and $verify_signature |
173 | 13 | 2 | 1 | $algorithm eq 'none' and $crypto_segment |
197 | 0 | 0 | 2 | $algorithm and $signing_class |
line | l | !l | condition |
---|---|---|---|
67 | 12 | 8 | $algorithm ||= 'HS256' |
68 | 1 | 19 | $extra_headers ||= {} |