Branch Coverage

blib/lib/Captcha/reCAPTCHA.pm
Criterion Covered Total %
branch 35 42 83.3


line true false branch
116 1 22 unless 'HASH' eq ref $args
152 0 2 unless 'HASH' eq ref $options
216 1 5 if $options and ref $options ne 'HASH'
220 3 2 unless $options
222 0 5 unless $pubkey
247 0 4 unless $pubkey
299 2 6 unless $pubkey
304 1 5 $use_ssl ? :
307 2 4 if ($error)
310 1 1 if ('HASH' eq ref $error)
311 0 1 if $error->{'is_valid'}
431 1 4 unless $privkey
435 1 3 unless $response
441 2 1 if $remoteip
448 3 0 if ($resp->is_success)
450 1 2 if ($resp->content =~ /success": true/) { }
520 1 3 unless $privkey
524 1 2 unless $remoteip
527 0 2 unless $challenge and $response
540 2 0 if ($resp->is_success) { }
542 1 1 if ($answer =~ /true/) { }