Skip Menu |

This queue is for tickets about the Google-reCAPTCHA CPAN distribution.

Report information
The Basics
Id: 110974
Status: resolved
Priority: 0/
Queue: Google-reCAPTCHA

People
Owner: TCORKRAN [...] cpan.org
Requestors: NALOBIN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.06



Subject: Three tests fail in 01-http.t
Tried to install the distribution on fresh ubuntu server 14.04 with Perl 5.18.2: t/01-http.t ....... 1/? # Failed test 'Module error thrown' # at t/01-http.t line 77. # expecting: Regexp ((?^:he 'secret' parameter \(""\) to Google::reCAPTCHA::new did not pass the 'is a secret key' callback:)) # found: The 'secret' parameter ("") to Google::reCAPTCHA::new did not pass the 'is a secret key' callback # at /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 670. # Params::Validate::PP::__ANON__() called at /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 580 # Params::Validate::PP::_validate_one_param() called at /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 340 # Params::Validate::PP::validate() called at /tmp/Google-reCAPTCHA-0.05/blib/lib/Google/reCAPTCHA.pm line 44 # Google::reCAPTCHA::new() called at t/01-http.t line 76 # Test::Exception::throws_ok() called at t/01-http.t line 77 # main::__ANON__() called at /usr/local/share/perl/5.18.2/Test/Builder.pm line 261 # Test::Builder::__ANON__() called at /usr/local/share/perl/5.18.2/Test/Builder.pm line 266 # eval {...} called at /usr/local/share/perl/5.18.2/Test/Builder.pm line 266 # Test::Builder::subtest() called at /usr/local/share/perl/5.18.2/Test/More.pm line 771 # Test::More::subtest() called at t/01-http.t line 78 # Looks like you failed 1 test of 1. # Failed test 'croaks if empty secret' # at t/01-http.t line 78. # Failed test 'Module error thrown' # at t/01-http.t line 93. # expecting: Regexp ((?^:did not pass the 'is a remote ipv4 or ipv6 address' callback:)) # found: The 'remoteip' parameter ("failed") to Google::reCAPTCHA::siteverify did not pass the 'is a remote ipv4 or ipv6 address' callback # at /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 670. # Params::Validate::PP::__ANON__() called at /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 580 # Params::Validate::PP::_validate_one_param() called at /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 340 # Params::Validate::PP::validate() called at /tmp/Google-reCAPTCHA-0.05/blib/lib/Google/reCAPTCHA.pm line 69 # Google::reCAPTCHA::siteverify() called at t/01-http.t line 92 # Test::Exception::throws_ok() called at t/01-http.t line 93 # main::__ANON__() called at /usr/local/share/perl/5.18.2/Test/Builder.pm line 261 # Test::Builder::__ANON__() called at /usr/local/share/perl/5.18.2/Test/Builder.pm line 266 # eval {...} called at /usr/local/share/perl/5.18.2/Test/Builder.pm line 266 # Test::Builder::subtest() called at /usr/local/share/perl/5.18.2/Test/More.pm line 771 # Test::More::subtest() called at t/01-http.t line 94 # Looks like you failed 1 test of 1. # Failed test 'croaks if not valid ipv4 or ipv6' # at t/01-http.t line 94. # Failed test 'Module error thrown' # at t/01-http.t line 101. # expecting: Regexp ((?^:The 'response' parameter \(""\) to Google::reCAPTCHA::siteverify did not pass the 'is a response code' callback:)) # found: The 'response' parameter ("") to Google::reCAPTCHA::siteverify did not pass the 'is a response code' callback # at /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 670. # Params::Validate::PP::__ANON__() called at /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 580 # Params::Validate::PP::_validate_one_param() called at /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 340 # Params::Validate::PP::validate() called at /tmp/Google-reCAPTCHA-0.05/blib/lib/Google/reCAPTCHA.pm line 69 # Google::reCAPTCHA::siteverify() called at t/01-http.t line 100 # Test::Exception::throws_ok() called at t/01-http.t line 101 # main::__ANON__() called at /usr/local/share/perl/5.18.2/Test/Builder.pm line 261 # Test::Builder::__ANON__() called at /usr/local/share/perl/5.18.2/Test/Builder.pm line 266 # eval {...} called at /usr/local/share/perl/5.18.2/Test/Builder.pm line 266 # Test::Builder::subtest() called at /usr/local/share/perl/5.18.2/Test/More.pm line 771 # Test::More::subtest() called at t/01-http.t line 102 # Looks like you failed 1 test of 1. # Failed test 'croaks if empty response' # at t/01-http.t line 102. # Looks like you failed 3 tests of 9. After removing ending colon from throws_ok REs, all three tests passed.
On 2016-01-07 02:31:38, NALOBIN wrote: Show quoted text
> Tried to install the distribution on fresh ubuntu server 14.04 with > Perl 5.18.2: > > t/01-http.t ....... 1/? > # Failed test 'Module error thrown' > # at t/01-http.t line 77. > # expecting: Regexp ((?^:he 'secret' parameter \(""\) to > Google::reCAPTCHA::new did not pass the 'is a secret key' callback:)) > # found: The 'secret' parameter ("") to Google::reCAPTCHA::new did not > pass the 'is a secret key' callback > # at /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 670. > # Params::Validate::PP::__ANON__() called at > /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 580 > # Params::Validate::PP::_validate_one_param() called at > /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 340 > # Params::Validate::PP::validate() called at /tmp/Google-reCAPTCHA- > 0.05/blib/lib/Google/reCAPTCHA.pm line 44 > # Google::reCAPTCHA::new() called at t/01-http.t line 76 > # Test::Exception::throws_ok() called at t/01-http.t line 77 > # main::__ANON__() called at > /usr/local/share/perl/5.18.2/Test/Builder.pm line 261 > # Test::Builder::__ANON__() called at > /usr/local/share/perl/5.18.2/Test/Builder.pm line 266 > # eval {...} called at /usr/local/share/perl/5.18.2/Test/Builder.pm > line 266 > # Test::Builder::subtest() called at > /usr/local/share/perl/5.18.2/Test/More.pm line 771 > # Test::More::subtest() called at t/01-http.t line 78 > # Looks like you failed 1 test of 1. > > # Failed test 'croaks if empty secret' > # at t/01-http.t line 78. > > # Failed test 'Module error thrown' > # at t/01-http.t line 93. > # expecting: Regexp ((?^:did not pass the 'is a remote ipv4 or ipv6 > address' callback:)) > # found: The 'remoteip' parameter ("failed") to > Google::reCAPTCHA::siteverify did not pass the 'is a remote ipv4 or > ipv6 address' callback > # at /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 670. > # Params::Validate::PP::__ANON__() called at > /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 580 > # Params::Validate::PP::_validate_one_param() called at > /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 340 > # Params::Validate::PP::validate() called at /tmp/Google-reCAPTCHA- > 0.05/blib/lib/Google/reCAPTCHA.pm line 69 > # Google::reCAPTCHA::siteverify() called at t/01-http.t line 92 > # Test::Exception::throws_ok() called at t/01-http.t line 93 > # main::__ANON__() called at > /usr/local/share/perl/5.18.2/Test/Builder.pm line 261 > # Test::Builder::__ANON__() called at > /usr/local/share/perl/5.18.2/Test/Builder.pm line 266 > # eval {...} called at /usr/local/share/perl/5.18.2/Test/Builder.pm > line 266 > # Test::Builder::subtest() called at > /usr/local/share/perl/5.18.2/Test/More.pm line 771 > # Test::More::subtest() called at t/01-http.t line 94 > # Looks like you failed 1 test of 1. > > # Failed test 'croaks if not valid ipv4 or ipv6' > # at t/01-http.t line 94. > > # Failed test 'Module error thrown' > # at t/01-http.t line 101. > # expecting: Regexp ((?^:The 'response' parameter \(""\) to > Google::reCAPTCHA::siteverify did not pass the 'is a response code' > callback:)) > # found: The 'response' parameter ("") to > Google::reCAPTCHA::siteverify did not pass the 'is a response code' > callback > # at /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 670. > # Params::Validate::PP::__ANON__() called at > /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 580 > # Params::Validate::PP::_validate_one_param() called at > /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 340 > # Params::Validate::PP::validate() called at /tmp/Google-reCAPTCHA- > 0.05/blib/lib/Google/reCAPTCHA.pm line 69 > # Google::reCAPTCHA::siteverify() called at t/01-http.t line 100 > # Test::Exception::throws_ok() called at t/01-http.t line 101 > # main::__ANON__() called at > /usr/local/share/perl/5.18.2/Test/Builder.pm line 261 > # Test::Builder::__ANON__() called at > /usr/local/share/perl/5.18.2/Test/Builder.pm line 266 > # eval {...} called at /usr/local/share/perl/5.18.2/Test/Builder.pm > line 266 > # Test::Builder::subtest() called at > /usr/local/share/perl/5.18.2/Test/More.pm line 771 > # Test::More::subtest() called at t/01-http.t line 102 > # Looks like you failed 1 test of 1. > > # Failed test 'croaks if empty response' > # at t/01-http.t line 102. > # Looks like you failed 3 tests of 9. > > After removing ending colon from throws_ok REs, all three tests > passed.
I can reproduce the test error if hiding Params::Validate::XS. It seems that Params::Validate::XS and ...::PP generate different error messages. So I think if you want to pass the tests you have to make sure that the XS variant of Params::Validate is built, maybe by installing a C compiler and a make program if it's missing.
On 2016-01-07 16:30:48, SREZIC wrote: Show quoted text
> On 2016-01-07 02:31:38, NALOBIN wrote:
> > Tried to install the distribution on fresh ubuntu server 14.04 with > > Perl 5.18.2: > > > > t/01-http.t ....... 1/? > > # Failed test 'Module error thrown' > > # at t/01-http.t line 77. > > # expecting: Regexp ((?^:he 'secret' parameter \(""\) to > > Google::reCAPTCHA::new did not pass the 'is a secret key' callback:)) > > # found: The 'secret' parameter ("") to Google::reCAPTCHA::new did > > not > > pass the 'is a secret key' callback > > # at /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 670. > > # Params::Validate::PP::__ANON__() called at > > /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 580 > > # Params::Validate::PP::_validate_one_param() called at > > /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 340 > > # Params::Validate::PP::validate() called at /tmp/Google-reCAPTCHA- > > 0.05/blib/lib/Google/reCAPTCHA.pm line 44 > > # Google::reCAPTCHA::new() called at t/01-http.t line 76 > > # Test::Exception::throws_ok() called at t/01-http.t line 77 > > # main::__ANON__() called at > > /usr/local/share/perl/5.18.2/Test/Builder.pm line 261 > > # Test::Builder::__ANON__() called at > > /usr/local/share/perl/5.18.2/Test/Builder.pm line 266 > > # eval {...} called at /usr/local/share/perl/5.18.2/Test/Builder.pm > > line 266 > > # Test::Builder::subtest() called at > > /usr/local/share/perl/5.18.2/Test/More.pm line 771 > > # Test::More::subtest() called at t/01-http.t line 78 > > # Looks like you failed 1 test of 1. > > > > # Failed test 'croaks if empty secret' > > # at t/01-http.t line 78. > > > > # Failed test 'Module error thrown' > > # at t/01-http.t line 93. > > # expecting: Regexp ((?^:did not pass the 'is a remote ipv4 or ipv6 > > address' callback:)) > > # found: The 'remoteip' parameter ("failed") to > > Google::reCAPTCHA::siteverify did not pass the 'is a remote ipv4 or > > ipv6 address' callback > > # at /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 670. > > # Params::Validate::PP::__ANON__() called at > > /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 580 > > # Params::Validate::PP::_validate_one_param() called at > > /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 340 > > # Params::Validate::PP::validate() called at /tmp/Google-reCAPTCHA- > > 0.05/blib/lib/Google/reCAPTCHA.pm line 69 > > # Google::reCAPTCHA::siteverify() called at t/01-http.t line 92 > > # Test::Exception::throws_ok() called at t/01-http.t line 93 > > # main::__ANON__() called at > > /usr/local/share/perl/5.18.2/Test/Builder.pm line 261 > > # Test::Builder::__ANON__() called at > > /usr/local/share/perl/5.18.2/Test/Builder.pm line 266 > > # eval {...} called at /usr/local/share/perl/5.18.2/Test/Builder.pm > > line 266 > > # Test::Builder::subtest() called at > > /usr/local/share/perl/5.18.2/Test/More.pm line 771 > > # Test::More::subtest() called at t/01-http.t line 94 > > # Looks like you failed 1 test of 1. > > > > # Failed test 'croaks if not valid ipv4 or ipv6' > > # at t/01-http.t line 94. > > > > # Failed test 'Module error thrown' > > # at t/01-http.t line 101. > > # expecting: Regexp ((?^:The 'response' parameter \(""\) to > > Google::reCAPTCHA::siteverify did not pass the 'is a response code' > > callback:)) > > # found: The 'response' parameter ("") to > > Google::reCAPTCHA::siteverify did not pass the 'is a response code' > > callback > > # at /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 670. > > # Params::Validate::PP::__ANON__() called at > > /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 580 > > # Params::Validate::PP::_validate_one_param() called at > > /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 340 > > # Params::Validate::PP::validate() called at /tmp/Google-reCAPTCHA- > > 0.05/blib/lib/Google/reCAPTCHA.pm line 69 > > # Google::reCAPTCHA::siteverify() called at t/01-http.t line 100 > > # Test::Exception::throws_ok() called at t/01-http.t line 101 > > # main::__ANON__() called at > > /usr/local/share/perl/5.18.2/Test/Builder.pm line 261 > > # Test::Builder::__ANON__() called at > > /usr/local/share/perl/5.18.2/Test/Builder.pm line 266 > > # eval {...} called at /usr/local/share/perl/5.18.2/Test/Builder.pm > > line 266 > > # Test::Builder::subtest() called at > > /usr/local/share/perl/5.18.2/Test/More.pm line 771 > > # Test::More::subtest() called at t/01-http.t line 102 > > # Looks like you failed 1 test of 1. > > > > # Failed test 'croaks if empty response' > > # at t/01-http.t line 102. > > # Looks like you failed 3 tests of 9. > > > > After removing ending colon from throws_ok REs, all three tests > > passed.
> > I can reproduce the test error if hiding Params::Validate::XS.
And here's the cpan testers report: http://www.cpantesters.org/cpan/report/ac1529a2-b585-11e5-980e-88ecfbd2507e
As I wrote before, the easiest decision is just to remove ending colons from these throws_ok REs. On Fri Jan 08 02:16:57 2016, SREZIC wrote: Show quoted text
> On 2016-01-07 16:30:48, SREZIC wrote:
> > On 2016-01-07 02:31:38, NALOBIN wrote:
> > > Tried to install the distribution on fresh ubuntu server 14.04 with > > > Perl 5.18.2: > > > > > > t/01-http.t ....... 1/? > > > # Failed test 'Module error thrown' > > > # at t/01-http.t line 77. > > > # expecting: Regexp ((?^:he 'secret' parameter \(""\) to > > > Google::reCAPTCHA::new did not pass the 'is a secret key' callback:)) > > > # found: The 'secret' parameter ("") to Google::reCAPTCHA::new did > > > not > > > pass the 'is a secret key' callback > > > # at /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 670. > > > # Params::Validate::PP::__ANON__() called at > > > /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 580 > > > # Params::Validate::PP::_validate_one_param() called at > > > /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 340 > > > # Params::Validate::PP::validate() called at /tmp/Google-reCAPTCHA- > > > 0.05/blib/lib/Google/reCAPTCHA.pm line 44 > > > # Google::reCAPTCHA::new() called at t/01-http.t line 76 > > > # Test::Exception::throws_ok() called at t/01-http.t line 77 > > > # main::__ANON__() called at > > > /usr/local/share/perl/5.18.2/Test/Builder.pm line 261 > > > # Test::Builder::__ANON__() called at > > > /usr/local/share/perl/5.18.2/Test/Builder.pm line 266 > > > # eval {...} called at /usr/local/share/perl/5.18.2/Test/Builder.pm > > > line 266 > > > # Test::Builder::subtest() called at > > > /usr/local/share/perl/5.18.2/Test/More.pm line 771 > > > # Test::More::subtest() called at t/01-http.t line 78 > > > # Looks like you failed 1 test of 1. > > > > > > # Failed test 'croaks if empty secret' > > > # at t/01-http.t line 78. > > > > > > # Failed test 'Module error thrown' > > > # at t/01-http.t line 93. > > > # expecting: Regexp ((?^:did not pass the 'is a remote ipv4 or ipv6 > > > address' callback:)) > > > # found: The 'remoteip' parameter ("failed") to > > > Google::reCAPTCHA::siteverify did not pass the 'is a remote ipv4 or > > > ipv6 address' callback > > > # at /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 670. > > > # Params::Validate::PP::__ANON__() called at > > > /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 580 > > > # Params::Validate::PP::_validate_one_param() called at > > > /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 340 > > > # Params::Validate::PP::validate() called at /tmp/Google-reCAPTCHA- > > > 0.05/blib/lib/Google/reCAPTCHA.pm line 69 > > > # Google::reCAPTCHA::siteverify() called at t/01-http.t line 92 > > > # Test::Exception::throws_ok() called at t/01-http.t line 93 > > > # main::__ANON__() called at > > > /usr/local/share/perl/5.18.2/Test/Builder.pm line 261 > > > # Test::Builder::__ANON__() called at > > > /usr/local/share/perl/5.18.2/Test/Builder.pm line 266 > > > # eval {...} called at /usr/local/share/perl/5.18.2/Test/Builder.pm > > > line 266 > > > # Test::Builder::subtest() called at > > > /usr/local/share/perl/5.18.2/Test/More.pm line 771 > > > # Test::More::subtest() called at t/01-http.t line 94 > > > # Looks like you failed 1 test of 1. > > > > > > # Failed test 'croaks if not valid ipv4 or ipv6' > > > # at t/01-http.t line 94. > > > > > > # Failed test 'Module error thrown' > > > # at t/01-http.t line 101. > > > # expecting: Regexp ((?^:The 'response' parameter \(""\) to > > > Google::reCAPTCHA::siteverify did not pass the 'is a response code' > > > callback:)) > > > # found: The 'response' parameter ("") to > > > Google::reCAPTCHA::siteverify did not pass the 'is a response code' > > > callback > > > # at /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 670. > > > # Params::Validate::PP::__ANON__() called at > > > /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 580 > > > # Params::Validate::PP::_validate_one_param() called at > > > /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 340 > > > # Params::Validate::PP::validate() called at /tmp/Google-reCAPTCHA- > > > 0.05/blib/lib/Google/reCAPTCHA.pm line 69 > > > # Google::reCAPTCHA::siteverify() called at t/01-http.t line 100 > > > # Test::Exception::throws_ok() called at t/01-http.t line 101 > > > # main::__ANON__() called at > > > /usr/local/share/perl/5.18.2/Test/Builder.pm line 261 > > > # Test::Builder::__ANON__() called at > > > /usr/local/share/perl/5.18.2/Test/Builder.pm line 266 > > > # eval {...} called at /usr/local/share/perl/5.18.2/Test/Builder.pm > > > line 266 > > > # Test::Builder::subtest() called at > > > /usr/local/share/perl/5.18.2/Test/More.pm line 771 > > > # Test::More::subtest() called at t/01-http.t line 102 > > > # Looks like you failed 1 test of 1. > > > > > > # Failed test 'croaks if empty response' > > > # at t/01-http.t line 102. > > > # Looks like you failed 3 tests of 9. > > > > > > After removing ending colon from throws_ok REs, all three tests > > > passed.
> > > > I can reproduce the test error if hiding Params::Validate::XS.
> > And here's the cpan testers report: > http://www.cpantesters.org/cpan/report/ac1529a2-b585-11e5-980e-88ecfbd2507e
On Sat Jan 09 00:55:59 2016, NALOBIN wrote: Show quoted text
> As I wrote before, the easiest decision is just to remove ending > colons from these throws_ok REs. > > > On Fri Jan 08 02:16:57 2016, SREZIC wrote:
> > On 2016-01-07 16:30:48, SREZIC wrote:
> > > On 2016-01-07 02:31:38, NALOBIN wrote:
> > > > Tried to install the distribution on fresh ubuntu server 14.04 > > > > with > > > > Perl 5.18.2: > > > > > > > > t/01-http.t ....... 1/? > > > > # Failed test 'Module error thrown' > > > > # at t/01-http.t line 77. > > > > # expecting: Regexp ((?^:he 'secret' parameter \(""\) to > > > > Google::reCAPTCHA::new did not pass the 'is a secret key' > > > > callback:)) > > > > # found: The 'secret' parameter ("") to Google::reCAPTCHA::new > > > > did > > > > not > > > > pass the 'is a secret key' callback > > > > # at /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line > > > > 670. > > > > # Params::Validate::PP::__ANON__() called at > > > > /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 580 > > > > # Params::Validate::PP::_validate_one_param() called at > > > > /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 340 > > > > # Params::Validate::PP::validate() called at /tmp/Google- > > > > reCAPTCHA- > > > > 0.05/blib/lib/Google/reCAPTCHA.pm line 44 > > > > # Google::reCAPTCHA::new() called at t/01-http.t line 76 > > > > # Test::Exception::throws_ok() called at t/01-http.t line 77 > > > > # main::__ANON__() called at > > > > /usr/local/share/perl/5.18.2/Test/Builder.pm line 261 > > > > # Test::Builder::__ANON__() called at > > > > /usr/local/share/perl/5.18.2/Test/Builder.pm line 266 > > > > # eval {...} called at > > > > /usr/local/share/perl/5.18.2/Test/Builder.pm > > > > line 266 > > > > # Test::Builder::subtest() called at > > > > /usr/local/share/perl/5.18.2/Test/More.pm line 771 > > > > # Test::More::subtest() called at t/01-http.t line 78 > > > > # Looks like you failed 1 test of 1. > > > > > > > > # Failed test 'croaks if empty secret' > > > > # at t/01-http.t line 78. > > > > > > > > # Failed test 'Module error thrown' > > > > # at t/01-http.t line 93. > > > > # expecting: Regexp ((?^:did not pass the 'is a remote ipv4 or > > > > ipv6 > > > > address' callback:)) > > > > # found: The 'remoteip' parameter ("failed") to > > > > Google::reCAPTCHA::siteverify did not pass the 'is a remote ipv4 > > > > or > > > > ipv6 address' callback > > > > # at /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line > > > > 670. > > > > # Params::Validate::PP::__ANON__() called at > > > > /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 580 > > > > # Params::Validate::PP::_validate_one_param() called at > > > > /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 340 > > > > # Params::Validate::PP::validate() called at /tmp/Google- > > > > reCAPTCHA- > > > > 0.05/blib/lib/Google/reCAPTCHA.pm line 69 > > > > # Google::reCAPTCHA::siteverify() called at t/01-http.t line 92 > > > > # Test::Exception::throws_ok() called at t/01-http.t line 93 > > > > # main::__ANON__() called at > > > > /usr/local/share/perl/5.18.2/Test/Builder.pm line 261 > > > > # Test::Builder::__ANON__() called at > > > > /usr/local/share/perl/5.18.2/Test/Builder.pm line 266 > > > > # eval {...} called at > > > > /usr/local/share/perl/5.18.2/Test/Builder.pm > > > > line 266 > > > > # Test::Builder::subtest() called at > > > > /usr/local/share/perl/5.18.2/Test/More.pm line 771 > > > > # Test::More::subtest() called at t/01-http.t line 94 > > > > # Looks like you failed 1 test of 1. > > > > > > > > # Failed test 'croaks if not valid ipv4 or ipv6' > > > > # at t/01-http.t line 94. > > > > > > > > # Failed test 'Module error thrown' > > > > # at t/01-http.t line 101. > > > > # expecting: Regexp ((?^:The 'response' parameter \(""\) to > > > > Google::reCAPTCHA::siteverify did not pass the 'is a response > > > > code' > > > > callback:)) > > > > # found: The 'response' parameter ("") to > > > > Google::reCAPTCHA::siteverify did not pass the 'is a response > > > > code' > > > > callback > > > > # at /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line > > > > 670. > > > > # Params::Validate::PP::__ANON__() called at > > > > /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 580 > > > > # Params::Validate::PP::_validate_one_param() called at > > > > /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 340 > > > > # Params::Validate::PP::validate() called at /tmp/Google- > > > > reCAPTCHA- > > > > 0.05/blib/lib/Google/reCAPTCHA.pm line 69 > > > > # Google::reCAPTCHA::siteverify() called at t/01-http.t line > > > > 100 > > > > # Test::Exception::throws_ok() called at t/01-http.t line 101 > > > > # main::__ANON__() called at > > > > /usr/local/share/perl/5.18.2/Test/Builder.pm line 261 > > > > # Test::Builder::__ANON__() called at > > > > /usr/local/share/perl/5.18.2/Test/Builder.pm line 266 > > > > # eval {...} called at > > > > /usr/local/share/perl/5.18.2/Test/Builder.pm > > > > line 266 > > > > # Test::Builder::subtest() called at > > > > /usr/local/share/perl/5.18.2/Test/More.pm line 771 > > > > # Test::More::subtest() called at t/01-http.t line 102 > > > > # Looks like you failed 1 test of 1. > > > > > > > > # Failed test 'croaks if empty response' > > > > # at t/01-http.t line 102. > > > > # Looks like you failed 3 tests of 9. > > > > > > > > After removing ending colon from throws_ok REs, all three tests > > > > passed.
> > > > > > I can reproduce the test error if hiding Params::Validate::XS.
> > > > And here's the cpan testers report: > > http://www.cpantesters.org/cpan/report/ac1529a2-b585-11e5-980e- > > 88ecfbd2507e
Removed the colons at the end from the three tests in 0.06 to resolve the issue with Params::Validate XS and PP.