Subject: | Failing tests in 5.12.0/5.12.1 |
It seems this module breaks in 5.12.0 and 5.12.1, installed with perlbrew and under
App::cpanminus -- platform is 10.6 OS X. Sorry for the verbosity, but please allow me to
assist if I can with additional testing.
Here are the test logs:
Building and testing MooseX-Types-Structured-0.21 for MooseX::Types::Structured
cp lib/MooseX/Types/Structured.pm blib/lib/MooseX/Types/Structured.pm
cp lib/MooseX/Meta/TypeCoercion/Structured.pm
blib/lib/MooseX/Meta/TypeCoercion/Structured.pmcp
lib/MooseX/Meta/TypeCoercion/Structured/Optional.pm
blib/lib/MooseX/Meta/TypeCoercion/Structured/Optional.pmcp
lib/MooseX/Meta/TypeConstraint/Structured.pm
blib/lib/MooseX/Meta/TypeConstraint/Structured.pmcp
lib/MooseX/Types/Structured/OverflowHandler.pm
blib/lib/MooseX/Types/Structured/OverflowHandler.pm
cp lib/MooseX/Meta/TypeConstraint/Structured/Optional.pm
blib/lib/MooseX/Meta/TypeConstraint/Structured/Optional.pm
Manifying blib/man3/MooseX::Types::Structured.3pm
Manifying blib/man3/MooseX::Meta::TypeConstraint::Structured.3pm
Manifying blib/man3/MooseX::Meta::TypeCoercion::Structured.3pm
PERL_DL_NONLAZY=1 /opt/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0,
'inc', 'blib/lib', 'blib/arch')" t/*.t
t/00-load.t ....... ok
t/01-basic.t ...... ok
t/02-tuple.t ...... ok
t/03-dict.t ....... ok
t/04-combined.t ... okt/04-map.t ........ ok
t/05-advanced.t ... ok
# Failed test 'MyDict2 is_a_type_of MyDict4'
# at t/06-api.t line 112.
# Failed test 'tuple of tuple'# at t/06-api.t line 127.
# Failed test 'tuple of tuple'
# at t/06-api.t line 128.
# Failed test 'tuple of tuple'
# at t/06-api.t line 129.
# Failed test 'MyDict1 is_subtype_of MyDict4'
# at t/06-api.t line 133.
# Looks like you failed 5 tests of 88.
t/06-api.t ........
Dubious, test returned 5 (wstat 1280, 0x500)
Failed 5/88 subtests
t/07-coerce.t ..... ok
t/08-examples.t ... skipped: Tests require MooseX::Types::DateTime
t/09-optional.t ... ok
t/10-recursion.t .. ok
t/11-overflow.t ... ok
# Failed test 'Wrong basic type'
# at t/12-error.t line 25.
# 'Validation failed for 'simple_tuple' with value { a: 1, b: 2 }'
# doesn't match '(?-xism:Validation failed for 'simple_tuple' failed with value { a: 1, b: 2 })'
# Failed test 'Correctly failed due to "a" not an Int'
# at t/12-error.t line 29.
# 'Validation failed for 'simple_tuple' with value [ "a", "b" ], Internal Validation Error
is: Validation failed for 'Int' with value a'
# doesn't match '(?-xism:failed for 'simple_tuple' failed with value \[ "a", "b" \])'
# Failed test 'Correctly failed due to object not a Str'
# at t/12-error.t line 33.
# 'Validation failed for 'simple_tuple' with value [ 1,
MooseX::Meta::TypeConstraint::Structured{ coercion:
MooseX::Meta::TypeCoercion::Structured=HASH(0x100b8a520), compiled_type_constraint:
CODE(0x100b88eb0), constraint: CODE(0x1009940f0), constraint_generator:
CODE(0x100b81808), name: "simple_tuple", package_defined_in: "main", ... } ], Internal
Validation Error is: Validation failed for 'Str' with value
MooseX::Meta::TypeConstraint::Structured=HASH(0x100b88e98)'
# doesn't match '(?-xism:Validation failed for 'simple_tuple' failed with value \[ 1,
MooseX::Meta::TypeConstraint::Structured)'
# Failed test 'Not enought values'
# at t/12-error.t line 37.
# 'Validation failed for 'simple_tuple' with value [ 1 ], Internal Validation Error is:
Validation failed for 'Str' with value NULL'
# doesn't match '(?-xism:Validation failed for 'Str' failed with value NULL)'
# Failed test 'Wrong basic type'
# at t/12-error.t line 47.
# 'Validation failed for 'simple_dict' with value [ 1, 2 ]'
# doesn't match '(?-xism: failed with value \[ 1, 2 \])'
# Failed test 'Correctly failed due to age not an Int'
# at t/12-error.t line 51.
# 'Validation failed for 'simple_dict' with value { age: "a", name: "John" }, Internal
Validation Error is: Validation failed for 'Int' with value a'
# doesn't match '(?-xism:failed for 'Int' failed with value a)'
# Failed test 'Correctly failed due to object not a Str'
# at t/12-error.t line 55.
# 'Validation failed for 'simple_dict' with value { age: 1, name:
MooseX::Meta::TypeConstraint::Structured{ coercion:
MooseX::Meta::TypeCoercion::Structured=HASH(0x100b8cc88), compiled_type_constraint:
CODE(0x100b8a958), constraint: CODE(0x1009940f0), constraint_generator:
CODE(0x10087c120), name: "simple_dict", package_defined_in: "main", ... } }, Internal
Validation Error is: Validation failed for 'Str' with value
MooseX::Meta::TypeConstraint::Structured=HASH(0x100b8a868)'
# doesn't match '(?-xism:failed with value { age: 1, name: MooseX:)'
# Failed test 'Not enought values'
# at t/12-error.t line 59.
# 'Validation failed for 'simple_dict' with value { name: "John" }, Internal Validation
Error is: Validation failed for 'Int' with value NULL'
# doesn't match '(?-xism:failed for 'Int' failed with value NULL)'
# Failed test 'Wrong basic type'
# at t/12-error.t line 72.
# 'Validation failed for 'optional_tuple' with value { a: 1, b: 2 }'
# doesn't match '(?-xism:Validation failed for 'optional_tuple' failed with value { a: 1, b: 2 })'
# Failed test 'Correctly failed due to "a" not an Int'
# at t/12-error.t line 76.
# 'Validation failed for 'optional_tuple' with value [ "a", "b" ], Internal Validation Error
is: Validation failed for 'Int' with value a'
# doesn't match '(?-xism:failed for 'Int' failed with value a)'
# Failed test 'Correctly failed due to object not a Str'
# at t/12-error.t line 80.
# 'Validation failed for 'optional_tuple' with value [ 1,
MooseX::Meta::TypeConstraint::Structured{ coercion:
MooseX::Meta::TypeCoercion::Structured=HASH(0x100b8a520), compiled_type_constraint:
CODE(0x100b88eb0), constraint: CODE(0x1009940f0), constraint_generator:
CODE(0x100b81808), name: "simple_tuple", package_defined_in: "main", ... } ], Internal
Validation Error is: Validation failed for 'MooseX::Types::Structured::Optional[Str]' with value
MooseX::Meta::TypeConstraint::Structured=HASH(0x100b88e98)'
# doesn't match '(?-xism:failed for 'MooseX::Types::Structured::Optional\[Str\]' failed with
value MooseX)'
# Failed test 'Wrong basic type'
# at t/12-error.t line 88.
# 'Validation failed for 'optional_dict' with value [ 1, 2 ]'
# doesn't match '(?-xism: failed with value \[ 1, 2 \])'
# Failed test 'Correctly failed due to age not an Int'
# at t/12-error.t line 92.
# 'Validation failed for 'optional_dict' with value { age: "a", name: "John" }, Internal
Validation Error is: Validation failed for 'MooseX::Types::Structured::Optional[Int]' with value a'
# doesn't match '(?-xism:Validation failed for 'MooseX::Types::Structured::Optional\[Int\]'
failed with value a)'
# Failed test 'Correctly failed due to object not a Str'
# at t/12-error.t line 96.
# 'Validation failed for 'optional_dict' with value { age: 1, name:
MooseX::Meta::TypeConstraint::Structured{ coercion:
MooseX::Meta::TypeCoercion::Structured=HASH(0x100b8cc88), compiled_type_constraint:
CODE(0x100b8a958), constraint: CODE(0x1009940f0), constraint_generator:
CODE(0x10087c120), name: "simple_dict", package_defined_in: "main", ... } }, Internal
Validation Error is: Validation failed for 'Str' with value
MooseX::Meta::TypeConstraint::Structured=HASH(0x100b8a868)'
# doesn't match '(?-xism:failed with value { age: 1, name: MooseX:)'
# Looks like you failed 14 tests of 25.
t/12-error.t ......
Dubious, test returned 14 (wstat 3584, 0xe00)
Failed 14/25 subtests
t/bug-optional.t .. ok
Test Summary Report
-------------------
t/06-api.t (Wstat: 1280 Tests: 88 Failed: 5)
Failed tests: 46, 56-58, 61
Non-zero exit status: 5
t/12-error.t (Wstat: 3584 Tests: 25 Failed: 14)
Failed tests: 5-8, 10-13, 15-17, 19-21
Non-zero exit status: 14
Files=15, Tests=319, 3 wallclock secs ( 0.09 usr 0.04 sys + 2.95 cusr 0.27 csys = 3.35
CPU)
Result: FAIL
Failed 2/15 test programs. 19/319 subtests failed.