summaryrefslogtreecommitdiffstats
path: root/t/lib
diff options
context:
space:
mode:
Diffstat (limited to 't/lib')
-rw-r--r--t/lib/MyExporter.pm21
-rw-r--r--t/lib/MyMetaclassRole.pm4
2 files changed, 25 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;
diff --git a/t/lib/MyMetaclassRole.pm b/t/lib/MyMetaclassRole.pm
new file mode 100644
index 0000000..362265a
--- /dev/null
+++ b/t/lib/MyMetaclassRole.pm
@@ -0,0 +1,4 @@
+package MyMetaclassRole;
+use Moose::Role;
+
+1;