Subject: | Tests fail (with MooX::Struct 0.15?) |
On my smokers the test suite started to fail:
...
# Failed test 'error msg'
# at t/02stuff_that_should_die.t line 33.
# 'Value "Hello" did not pass type constraint "Num" (in $args->{"number"})
# "Num" is a subtype of "LaxNum"
# Value "Hello" did not pass type constraint "LaxNum" (in $args->{"number"})
# "LaxNum" is defined as: (defined($_) && !ref($_) && Scalar::Util::looks_like_number($_)) at /home/cpansand/.cpan/build/2017051415/Sub-Talisman-Struct-0.005-Tdvz51/blib/lib/Sub/Talisman/Struct.pm line 63.
# Sub::Talisman::Struct::_process_params("Sub::Talisman::Struct", "Local::XXX1::XXX", ARRAY(0x4467e930)) called at /home/cpansand/.cpan/build/2017051415/Sub-Talisman-0.005-T46EB7/blib/lib/Sub/Talisman.pm line 93
# Sub::Talisman::_callback(undef, undef, undef, undef, undef, undef, undef, "Sub::Talisman::Struct", "Local::XXX1", ...) called at /usr/perl5.22.2t/lib/5.22.2/Attribute/Handlers.pm line 229
# Attribute::Handlers::_apply_handler_AH_(ARRAY(0x4467e858), "CHECK") called at /usr/perl5.22.2t/lib/5.22.2/Attribute/Handlers.pm line 181
# Attribute::Handlers::__ANON__("Local::XXX1", CODE(0x4467fd08), "XXX(\"Hello\")") called at /usr/perl5.22.2t/lib/5.22.2/amd64-freebsd-thread-multi/attributes.pm line 68
# attributes::import("attributes", "Local::XXX1", CODE(0x4467fd08), "XXX(\"Hello\")") called at (eval 116) line 1
# Local::XXX1::BEGIN() called at (eval 116) line 1
# eval {...} called at (eval 116) line 1
# eval ' sub foo3 :XXX("Hello") { 1 }; 1 ' called at t/02stuff_that_should_die.t line 32
# main::__ANON__() called at /usr/perl5.22.2t/lib/site_perl/5.22.2/Test/Builder.pm line 309
# eval {...} called at /usr/perl5.22.2t/lib/site_perl/5.22.2/Test/Builder.pm line 309
# Test::Builder::subtest(Test::Builder=HASH(0x41d062a0), "isa checks", CODE(0x41cc3840)) called at /usr/perl5.22.2t/lib/site_perl/5.22.2/Test/More.pm line 807
# Test::More::subtest("isa checks", CODE(0x41cc3840)) called at t/02stuff_that_should_die.t line 34
# BEGIN failed--compilation aborted at (eval 116) line 1.
# '
# doesn't match '(?^:isa check for "number" failed)'
# Looks like you failed 1 test of 4.
... etc. ...
Statistical analysis that the test failures are caused by MooX::Struct 0.015:
****************************************************************
Regression 'mod:MooX::Struct'
****************************************************************
Name Theta StdErr T-stat
[0='const'] 1.0000 0.0000 8640310095716140.00
[1='eq_0.013'] 0.0000 0.0000 0.00
[2='eq_0.014'] 0.0000 0.0000 0.00
[3='eq_0.015'] -1.0000 0.0000 -8528817552493462.00
R^2= 1.000, N= 94, K= 4
****************************************************************