Branch Coverage

blib/lib/Captcha/reCAPTCHA/V3.pm
Criterion Covered Total %
branch 10 28 35.7


line true false branch
33 6 1 unless my $value = shift()
39 0 1 unless my $value = shift()
47 0 1 if @_
49 1 0 if (_has_curl()) { }
0 0 elsif (not _has_lwp_https()) { }
57 0 1 unless my $json = `$cmd`
63 0 0 unless eval { do { require LWP::UserAgent; require LWP::Protocol::https } }
85 0 0 if $score < 0 or 1 < $score
88 0 0 if ($content->{'success'} and $content->{'score'} == 1 || $content->{'score'} < $score)
98 0 0 if $content->{'success'}
123 0 3 unless my $id = $attr{'id'}
125 1 2 $attr{'debug'} ? :
154 1 0 if system("curl --version >nul 2>&1") == 0
155 0 0 if system("curl --version >/dev/null 2>&1") == 0