File: 09require.t

package info (click to toggle)
libmodule-pluggable-fast-perl 0.19-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, stretch, wheezy
  • size: 92 kB
  • ctags: 12
  • sloc: perl: 114; makefile: 4
file content (28 lines) | stat: -rw-r--r-- 369 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!perl-wT

use strict;
use lib 't/lib';
use Test::More tests => 2;

my $t = MyTest->new();


ok($t->plugins());

ok(keys %{MyTest::Plugin::Foo::});


package MyTest;
use File::Spec::Functions qw(catdir);
use strict;
use Module::Pluggable::Fast (require => 1);
use base qw(Module::Pluggable::Fast);


sub new {
    my $class = shift;
    return bless {}, $class;

}
1;