MethodAttributes/Inheritable.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod n/a totaltotal 0.0% 0 / 16 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package MooseX::MethodAttributes::Inheritable;
2 # ABSTRACT: inheritable code attribute introspection
3  
4 our $VERSION = '0.32';
5  
6 #pod =head1 SYNOPSIS
7 #pod
8 #pod package BaseClass;
9 #pod use base qw/MooseX::MethodAttributes::Inheritable/;
10 #pod
11 #pod package SubClass;
12 #pod use base qw/BaseClass/;
13 #pod
14 #pod sub foo : Bar {}
15 #pod
16 #pod my $attrs = SubClass->meta->get_method('foo')->attributes; # ["Bar"]
17 #pod
18 #pod =head1 DESCRIPTION
19 #pod
20 #pod This module does the same as C<MooseX::MethodAttributes>, except that classes
21 #pod inheriting from other classes using it don't need to do anything special to get
22 #pod their code attributes captured.
23 #pod
24 #pod Note that instead of inheriting from this module, you can instead simply
25 #pod compose (C<with>) the L<MooseX::MethodAttributes::Role::AttrContainer::Inheritable> role.
26 #pod
27 #pod =cut
28  
29 # Ensure trait is registered
30 use MooseX::MethodAttributes::Role::Meta::Role ();
31  
32 use Moose;
33  
34 use namespace::autoclean;
35  
36 with 'MooseX::MethodAttributes::Role::AttrContainer::Inheritable';
37  
38 __PACKAGE__->meta->make_immutable;
39 1;
40  
41 __END__