1 # this test is replicated to t/load_module_role_tiny.t for Role::Tiny
10 return unless $_[1] eq 'Foo/Bar.pm';
11 my $source = "package Foo::Bar; sub baz { 1 } 1";
12 open my $fh, '<', \$source;
16 { package Foo::Bar::Baz; sub quux { } }
18 _load_module("Foo::Bar");
20 ok(eval { Foo::Bar->baz }, 'Loaded module ok');