From: Fuji, Goro Date: Sat, 25 Sep 2010 03:01:21 +0000 (+0900) Subject: Update t/lib X-Git-Tag: 0.72~31 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=commitdiff_plain;h=1eb43e0a41287a5b7de774527e379f9ed57e7e21 Update t/lib --- diff --git a/t/lib/Bar.pm b/t/lib/Bar.pm index c9d0ab0..8025d68 100644 --- a/t/lib/Bar.pm +++ b/t/lib/Bar.pm @@ -1,4 +1,7 @@ +# This is automatically generated by author/import-moose-test.pl. +# DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!! +use t::lib::MooseCompat; package Bar; use Mouse; use Mouse::Util::TypeConstraints; diff --git a/t/lib/Bar7/Meta/Trait.pm b/t/lib/Bar7/Meta/Trait.pm new file mode 100644 index 0000000..4c246ab --- /dev/null +++ b/t/lib/Bar7/Meta/Trait.pm @@ -0,0 +1,11 @@ +package Bar7::Meta::Trait; +# This is automatically generated by author/import-moose-test.pl. +# DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!! +use t::lib::MooseCompat; +use Mouse::Role; + +around _immutable_options => sub { }; + +no Mouse::Role; + +1; diff --git a/t/lib/Bar7/Meta/Trait2.pm b/t/lib/Bar7/Meta/Trait2.pm new file mode 100644 index 0000000..554302e --- /dev/null +++ b/t/lib/Bar7/Meta/Trait2.pm @@ -0,0 +1,16 @@ +package Bar7::Meta::Trait2; +# This is automatically generated by author/import-moose-test.pl. +# DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!! +use t::lib::MooseCompat; +use Mouse::Role; + +has foo => ( + traits => ['Array'], + handles => { + push_foo => 'push', + }, +); + +no Mouse::Role; + +1; diff --git a/t/lib/Foo.pm b/t/lib/Foo.pm index 6cbac0f..b7750b2 100644 --- a/t/lib/Foo.pm +++ b/t/lib/Foo.pm @@ -1,4 +1,7 @@ +# This is automatically generated by author/import-moose-test.pl. +# DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!! +use t::lib::MooseCompat; package Foo; use Mouse; diff --git a/t/lib/Mouse/Meta/Attribute/Custom/Bar.pm b/t/lib/Mouse/Meta/Attribute/Custom/Bar.pm new file mode 100644 index 0000000..f0c39c3 --- /dev/null +++ b/t/lib/Mouse/Meta/Attribute/Custom/Bar.pm @@ -0,0 +1,13 @@ +package Mouse::Meta::Attribute::Custom::Bar; +# This is automatically generated by author/import-moose-test.pl. +# DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!! +use t::lib::MooseCompat; + +sub register_implementation { 'My::Bar' } + + +package My::Bar; + +use Mouse::Role; + +1; diff --git a/t/lib/Mouse/Meta/Attribute/Custom/Foo.pm b/t/lib/Mouse/Meta/Attribute/Custom/Foo.pm new file mode 100644 index 0000000..a602d90 --- /dev/null +++ b/t/lib/Mouse/Meta/Attribute/Custom/Foo.pm @@ -0,0 +1,8 @@ +package Mouse::Meta::Attribute::Custom::Foo; +# This is automatically generated by author/import-moose-test.pl. +# DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!! +use t::lib::MooseCompat; + +use Mouse::Role; + +1; diff --git a/t/lib/Mouse/Meta/Attribute/Custom/Trait/Bar.pm b/t/lib/Mouse/Meta/Attribute/Custom/Trait/Bar.pm new file mode 100644 index 0000000..7ee2b71 --- /dev/null +++ b/t/lib/Mouse/Meta/Attribute/Custom/Trait/Bar.pm @@ -0,0 +1,13 @@ +package Mouse::Meta::Attribute::Custom::Trait::Bar; +# This is automatically generated by author/import-moose-test.pl. +# DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!! +use t::lib::MooseCompat; + +sub register_implementation { 'My::Trait::Bar' } + + +package My::Trait::Bar; + +use Mouse::Role; + +1; diff --git a/t/lib/Mouse/Meta/Attribute/Custom/Trait/Foo.pm b/t/lib/Mouse/Meta/Attribute/Custom/Trait/Foo.pm new file mode 100644 index 0000000..76b2d9d --- /dev/null +++ b/t/lib/Mouse/Meta/Attribute/Custom/Trait/Foo.pm @@ -0,0 +1,8 @@ +package Mouse::Meta::Attribute::Custom::Trait::Foo; +# This is automatically generated by author/import-moose-test.pl. +# DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!! +use t::lib::MooseCompat; + +use Mouse::Role; + +1; diff --git a/t/lib/MyExporter.pm b/t/lib/MyExporter.pm new file mode 100644 index 0000000..c7b8373 --- /dev/null +++ b/t/lib/MyExporter.pm @@ -0,0 +1,27 @@ + +# This is automatically generated by author/import-moose-test.pl. +# DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!! +use t::lib::MooseCompat; + +package MyExporter; +use Mouse::Exporter; +use Test::More; + +Mouse::Exporter->setup_import_methods( + with_meta => [qw(with_prototype)], + as_is => [qw(as_is_prototype)], +); + +sub with_prototype (&) { + my ($class, $code) = @_; + isa_ok($code, 'CODE', 'with_prototype received a coderef'); + $code->(); +} + +sub as_is_prototype (&) { + my ($code) = @_; + isa_ok($code, 'CODE', 'as_is_prototype received a coderef'); + $code->(); +} + +1; diff --git a/t/lib/MyMetaclassRole.pm b/t/lib/MyMetaclassRole.pm index 19df7ec..7996337 100644 --- a/t/lib/MyMetaclassRole.pm +++ b/t/lib/MyMetaclassRole.pm @@ -1,4 +1,7 @@ package MyMetaclassRole; +# This is automatically generated by author/import-moose-test.pl. +# DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!! +use t::lib::MooseCompat; use Mouse::Role; 1; diff --git a/t/lib/MyMouseA.pm b/t/lib/MyMouseA.pm index 10ddc13..12068d3 100644 --- a/t/lib/MyMouseA.pm +++ b/t/lib/MyMouseA.pm @@ -1,4 +1,7 @@ package MyMouseA; +# This is automatically generated by author/import-moose-test.pl. +# DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!! +use t::lib::MooseCompat; use Mouse; diff --git a/t/lib/MyMouseB.pm b/t/lib/MyMouseB.pm index 542ae00..12c766a 100644 --- a/t/lib/MyMouseB.pm +++ b/t/lib/MyMouseB.pm @@ -1,4 +1,7 @@ package MyMouseB; +# This is automatically generated by author/import-moose-test.pl. +# DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!! +use t::lib::MooseCompat; use Mouse; diff --git a/t/lib/MyMouseObject.pm b/t/lib/MyMouseObject.pm index d60a6f4..0dfb556 100644 --- a/t/lib/MyMouseObject.pm +++ b/t/lib/MyMouseObject.pm @@ -1,4 +1,7 @@ package MyMouseObject; +# This is automatically generated by author/import-moose-test.pl. +# DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!! +use t::lib::MooseCompat; use strict; use warnings; diff --git a/t/lib/Role/Child.pm b/t/lib/Role/Child.pm index 1ee02b1..d3702bc 100644 --- a/t/lib/Role/Child.pm +++ b/t/lib/Role/Child.pm @@ -1,4 +1,7 @@ package Role::Child; +# This is automatically generated by author/import-moose-test.pl. +# DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!! +use t::lib::MooseCompat; use Mouse::Role; with 'Role::Parent' => { -alias => { meth1 => 'aliased_meth1', } }; diff --git a/t/lib/Role/Interface.pm b/t/lib/Role/Interface.pm index f081f32..2c0badf 100644 --- a/t/lib/Role/Interface.pm +++ b/t/lib/Role/Interface.pm @@ -1,4 +1,7 @@ package Role::Interface; +# This is automatically generated by author/import-moose-test.pl. +# DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!! +use t::lib::MooseCompat; use Mouse::Role; requires "meth2"; diff --git a/t/lib/Role/Parent.pm b/t/lib/Role/Parent.pm index 04befab..ac1e959 100644 --- a/t/lib/Role/Parent.pm +++ b/t/lib/Role/Parent.pm @@ -1,4 +1,7 @@ package Role::Parent; +# This is automatically generated by author/import-moose-test.pl. +# DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!! +use t::lib::MooseCompat; use Mouse::Role; sub meth2 { }