Move Module::Pluggable from ext/ to cpan/
[p5sagit/p5-mst-13.2.git] / cpan / Module-Pluggable / t / 12onlyrequire.t
CommitLineData
a0df7637 1#!perl -w
2use strict;
3use FindBin;
4use lib (($FindBin::Bin."/lib")=~/^(.*)$/);
5use Test::More tests => 2;
6
7my @packages = eval { Zot->_dist_types };
8is($@, '', "No warnings");
9is(scalar(@packages), 0, "Correctly only got 1 package");
10
11
12package Zot;
13use strict;
14use Module::Pluggable (
15 sub_name => '_dist_types',
16 search_path => __PACKAGE__,
17 only => qr/Zot::\w+$/,
18 require => 1,
19 );
20
211;