Branch Coverage

blib/lib/Mojolicious/Plugin/ReCAPTCHAv2.pm
Criterion Covered Total %
branch 18 30 60.0


line true false branch
22 0 5 unless $conf->{'sitekey'} and $conf->{'secret'}
33 1 2 $_[0] ? :
41 1 2 if (defined $language and $language) { }
0 2 elsif (exists $data_attr{'language'}) { }
66 2 1 unless (defined $cb and ref $cb eq 'CODE')
82 0 3 if (my $txerr = $tx->error) { }
84 0 0 if $txerr->{'code'}
95 0 3 if ($@) { }
103 3 0 unless ($json->{'success'} == 'Mojo::JSON'->true)
110 1 2 if $cb
114 1 2 if ($cb) { }
144 0 1 if (my $err = $tx->error)
146 0 0 if $err->{'code'}
156 0 1 unless (defined $json)
163 1 0 unless ($json->{'success'})