blib/lib/JSON/WebToken.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 23 | 25 | 92.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
76 | 3 | 14 | 1 | $algorithm ne 'none' and not defined $secret |
107 | 1 | 17 | 1 | $verify_signature and not defined $secret |
115 | 1 | 1 | 16 | @$segments >= 2 and @$segments <= 4 |
129 | 3 | 1 | 11 | $$header{'alg'} ne 'none' and $verify_signature |
141 | 11 | 2 | 1 | $$header{'alg'} eq 'none' and not $accept_algorithm_none |
153 | 11 | 1 | 1 | $algorithm eq 'none' and $crypto_segment |
177 | 0 | 0 | 2 | $algorithm and $signing_class |
line | l | !l | condition |
---|---|---|---|
65 | 10 | 8 | $algorithm ||= 'HS256' |
66 | 1 | 17 | $extra_headers ||= {} |