2 # This is automatically generated by author/import-moose-test.pl.
3 # DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!!
4 use t::lib::MooseCompat;
17 sub foo { 'Foo::foo' }
18 sub bar { 'Foo::bar' }
19 sub baz { 'Foo::baz' }
20 sub gorch { 'Foo::gorch' }
25 sub foo { 'Bar::foo' }
26 sub bar { 'Bar::bar' }
27 sub baz { 'Bar::baz' }
28 sub gorch { 'Bar::gorch' }
33 sub foo { 'Baz::foo' }
34 sub bar { 'Baz::bar' }
35 sub baz { 'Baz::baz' }
36 sub gorch { 'Baz::gorch' }
41 sub foo { 'Gorch::foo' }
42 sub bar { 'Gorch::bar' }
43 sub baz { 'Gorch::baz' }
44 sub gorch { 'Gorch::gorch' }
52 with 'Foo' => { -excludes => [qw/bar baz gorch/], -alias => { gorch => 'foo_gorch' } },
53 'Bar' => { -excludes => [qw/foo baz gorch/] },
54 'Baz' => { -excludes => [qw/foo bar gorch/], -alias => { foo => 'baz_foo', bar => 'baz_bar' } },
55 'Gorch' => { -excludes => [qw/foo bar baz/] };
56 } '... everything works out all right';
59 my $c = My::Class->new;
60 isa_ok($c, 'My::Class');
62 is($c->foo, 'Foo::foo', '... got the right method');
63 is($c->bar, 'Bar::bar', '... got the right method');
64 is($c->baz, 'Baz::baz', '... got the right method');
65 is($c->gorch, 'Gorch::gorch', '... got the right method');
67 is($c->foo_gorch, 'Foo::gorch', '... got the right method');
68 is($c->baz_foo, 'Baz::foo', '... got the right method');
69 is($c->baz_bar, 'Baz::bar', '... got the right method');