Adapt perlivp to the ext/ reorganisation for Compress modules
[p5sagit/p5-mst-13.2.git] / t / Module_Pluggable / 10innerpack.t
CommitLineData
3f7169a2 1#!perl -w
2
3use strict;
4use FindBin;
5use lib "$FindBin::Bin/lib";
6use Test::More tests => 4;
7
8
9
10my $t = InnerTest->new();
11
12my %plugins = map { $_ => 1 } $t->plugins;
13
14ok(keys %plugins, "Got some plugins");
15ok($plugins{'InnerTest::Plugin::Foo'}, "Got Foo");
16ok($plugins{'InnerTest::Plugin::Bar'}, "Got Bar - the inner package");
17ok($plugins{'InnerTest::Plugin::Quux'}, "Got Quux - the other inner package");
18
19
20
21package InnerTest;
22use strict;
23use Module::Pluggable require => 1;
24use base qw(Module::Pluggable);
25
26
27sub new {
28 my $class = shift;
29 return bless {}, $class;
30
31}
32
33
341;
35