AttributeTags/PRole.pm

filter: Statementstmt 100% 22 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 27 / 27 CC 2 SCAR 2.9
CC
2
Cov
100%
__ANON__
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« AttributeTags.pm ↑ Summary
1 1 ▶use 5.008;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 package MooseX::AttributeTags::PRole;
6  
7 1 our $AUTHORITY = 'cpan:TOBYINK';
8 1 our $VERSION = '0.005';
9  
10 1 ▶use MooseX::Role::Parameterized;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 1 parameter attributes => (
13 isa => 'HashRef[ArrayRef]',
14 required => 1,
15 );
16  
17 3 ▶role {
Subroutine __ANON__: called CC=2 SCAR=6.9
18 3 my $p = shift;
19 3 my %a = %{ $p->attributes };
20
21 3 for my $name (sort keys %a)
22 {
23 4 has $name => @{ $a{$name} };
24 }
25 1 };
26  
27 1 1;
28  
29  
30 __END__
« AttributeTags.pm ↑ Summary