summaryrefslogtreecommitdiffstats
path: root/t/lib/MyExporter.pm
diff options
context:
space:
mode:
Diffstat (limited to 't/lib/MyExporter.pm')
-rw-r--r--t/lib/MyExporter.pm21
1 files changed, 21 insertions, 0 deletions
diff --git a/t/lib/MyExporter.pm b/t/lib/MyExporter.pm
new file mode 100644
index 0000000..a29fff0
--- /dev/null
+++ b/t/lib/MyExporter.pm
@@ -0,0 +1,21 @@
+
+
+package MyExporter;
+use MooseX::Exporter::Easy;
+use Test::More;
+
+with_meta with_prototype => sub (&) {
+ my ($meta, $code) = @_;
+ isa_ok($code, 'CODE', 'with_prototype received a coderef');
+ $code->();
+};
+
+as_is as_is_prototype => sub (&) {
+ my ($code) = @_;
+ isa_ok($code, 'CODE', 'as_is_prototype received a coderef');
+ $code->();
+};
+
+export;
+
+1;