| blib/lib/Crypt/OdinAuth.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 9 | 10 | 90.0 |
| line | true | false | branch |
|---|---|---|---|
| 62 | 5 | 3 | unless defined $ts |
| 79 | 0 | 6 | unless $cookie =~ /^\s*([a-zA-Z0-9_-]+),([a-zA-Z0-9_-]+),(\d+),([0-9a-f]+)\s*$/ |
| 96 | 2 | 4 | if $hmac_received->digest ne $hmac_calculated->digest |
| 99 | 1 | 3 | if $ts < time - 86400 |
| 102 | 1 | 2 | if $ts > time + 300 |