MethodAttributes/Role/Meta/Role/Application/Summation.pm

filter: Statementstmt 100% 16 / 16 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 95.4% 21 / 22 CC 3 SCAR 7.0
CC
3
Cov
94%
_copy_attributes
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« MethodAttributes/Role.pm ↑ Summary MethodAttributes/Inheritable.pm »
1 package MooseX::MethodAttributes::Role::Meta::Role::Application::Summation;
2 # ABSTRACT: Role applied to the class responsible for role summation which ensures method attributes propagate from the roles being summed onto the combined role.
3  
4 3 our $VERSION = '0.32';
5  
6 3 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 3 ▶use Moose::Util qw/does_role/;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 3 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 3 with 'MooseX::MethodAttributes::Role::Meta::Role::Application';
11  
12 2 ▶sub _copy_attributes {
Subroutine _copy_attributes: called CC=3 SCAR=11.1
13 2 my ($self, $thing) = @_;
14 2 for my $role (@{ $self->get_roles }) {
15 4 ▶ $role->_copy_attributes($thing)
Branch: 1 branch
BranchTrueFalseTotal
if does_role($role, "MooseX::MethodAttributes::Role::Meta::Role") 4 0 4
16 if does_role($role, 'MooseX::MethodAttributes::Role::Meta::Role');
17 }
18 }
19  
20 3 1;
21  
22 __END__
« MethodAttributes/Role.pm ↑ Summary MethodAttributes/Inheritable.pm »