Condition Coverage

blib/lib/Mojolicious/Plugin/ReCAPTCHAv2.pm
Criterion Covered Total %
condition 12 23 52.1


and 3 conditions

line !l l&&!r l&&r condition
22 0 0 5 $conf->{'sitekey'} and $conf->{'secret'}
41 2 0 1 defined $language and $language
66 2 0 1 defined $cb and ref $cb eq 'CODE'

or 2 conditions

line l !l condition
19 5 0 shift() || {}
24 0 5 $conf->{'api_url'} //= 'https://www.google.com/recaptcha/api/siteverify'
25 0 5 $conf->{'api_timeout'} //= 10
73 3 0 $c->req->param('g-recaptcha-response') || ''
104 3 0 $json->{'error-codes'} // []
131 1 0 $c->req->param('g-recaptcha-response') || ''
164 1 0 $json->{'error-codes'} // []