| blib/lib/Catalyst/TraitFor/Controller/reCAPTCHA.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 6 | 10 | 60.0 |
| line | true | false | branch |
|---|---|---|---|
| 17 | 1 | 1 | if (lc($c->config->{'recaptcha'}{'version'} || '') eq 'v2') { } |
| 42 | 0 | 1 | unless ($response and $challenge or $response_v2) |
| 48 | 0 | 1 | if (lc($c->config->{'recaptcha'}{'version'} || '') eq 'v2') { } |
| 65 | 0 | 1 | unless ref $res eq 'HASH' |
| 68 | 1 | 0 | unless ($res->{'is_valid'}) |