Branch Coverage

blib/lib/Captcha/reCAPTCHA/V3.pm
Criterion Covered Total %
branch 11 30 36.6


line true false branch
33 6 1 unless my $value = shift()
39 0 1 unless my $value = shift()
47 0 2 if @_
49 2 0 if (_has_curl()) { }
0 0 elsif (not _has_lwp_https()) { }
57 0 2 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 0 2 if ($^O eq 'MSWin32') { }
155 0 0 if system("curl --version >nul 2>&1") == 0
157 2 0 if system("curl --version >/dev/null 2>&1") == 0