| blib/lib/WWW/CSRF.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 11 | 12 | 91.6 |
| line | true | false | branch |
|---|---|---|---|
| 151 | 1 | 5 | if (not defined $random) { } |
| 1 | 4 | elsif (length $random != length $digest) { } | |
| 223 | 1 | 6 | unless ($csrf_token =~ /^([0-9a-f]+),([0-9a-f]+),([0-9]+)$/) |
| 238 | 0 | 6 | if ($#masked_bytes != $#mask_bytes or $#masked_bytes != $#correct_bytes) |
| 248 | 3 | 3 | if ($mismatches == 0) { } |
| 249 | 1 | 2 | if ($max_age >= 0 and $ref_time - $time > $max_age) { } |