diff options
Diffstat (limited to 't/lib/Role')
-rw-r--r-- | t/lib/Role/BreakOnLoad.pm | 8 | ||||
-rw-r--r-- | t/lib/Role/Child.pm | 8 | ||||
-rw-r--r-- | t/lib/Role/Interface.pm | 6 | ||||
-rw-r--r-- | t/lib/Role/Parent.pm | 7 |
4 files changed, 29 insertions, 0 deletions
diff --git a/t/lib/Role/BreakOnLoad.pm b/t/lib/Role/BreakOnLoad.pm new file mode 100644 index 0000000..48367a7 --- /dev/null +++ b/t/lib/Role/BreakOnLoad.pm @@ -0,0 +1,8 @@ +package Role::BreakOnLoad; +use Moose::Role; + +sub meth1 { } + +this role has a syntax error and should crash on load. + +1; diff --git a/t/lib/Role/Child.pm b/t/lib/Role/Child.pm new file mode 100644 index 0000000..4c70436 --- /dev/null +++ b/t/lib/Role/Child.pm @@ -0,0 +1,8 @@ +package Role::Child; +use Moose::Role; + +with 'Role::Parent' => { -alias => { meth1 => 'aliased_meth1', } }; + +sub meth1 { } + +1; diff --git a/t/lib/Role/Interface.pm b/t/lib/Role/Interface.pm new file mode 100644 index 0000000..025cf40 --- /dev/null +++ b/t/lib/Role/Interface.pm @@ -0,0 +1,6 @@ +package Role::Interface; +use Moose::Role; + +requires "meth2"; + +1; diff --git a/t/lib/Role/Parent.pm b/t/lib/Role/Parent.pm new file mode 100644 index 0000000..0f49427 --- /dev/null +++ b/t/lib/Role/Parent.pm @@ -0,0 +1,7 @@ +package Role::Parent; +use Moose::Role; + +sub meth2 { } +sub meth1 { } + +1; |