summaryrefslogtreecommitdiffstats
path: root/t/lib
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-07-10 17:11:20 -0400
committerJesse Luehrs <doy@tozt.net>2013-07-10 17:11:20 -0400
commit5c9420df616f091d317fda0c0fce38359f736da6 (patch)
tree438df66d6f96b66a79c35d6618416cecb7023748 /t/lib
parent51601b722cbd7c582f5ed2e163ed12b3d5cfb527 (diff)
downloadexporter-lexical-5c9420df616f091d317fda0c0fce38359f736da6.tar.gz
exporter-lexical-5c9420df616f091d317fda0c0fce38359f736da6.zip
allow just building the exporter without installing it
Diffstat (limited to 't/lib')
-rw-r--r--t/lib/Bar.pm20
1 files changed, 20 insertions, 0 deletions
diff --git a/t/lib/Bar.pm b/t/lib/Bar.pm
new file mode 100644
index 0000000..69aadf9
--- /dev/null
+++ b/t/lib/Bar.pm
@@ -0,0 +1,20 @@
+package Bar;
+use strict;
+use warnings;
+
+use Exporter::Lexical ();
+
+our $imported;
+
+my $import = Exporter::Lexical::build_exporter({
+ -exports => [ qw(bar) ],
+});
+
+sub import {
+ $imported = 1;
+ goto $import;
+}
+
+sub bar { "BAR" }
+
+1;