Moose/Role.pm

filter: Statementstmt 85.7% 12 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 89.4% 17 / 19 CC 1 SCAR 0.6
CC
1
Cov
86%
BEGIN
1.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
↑ Summary Moose.pm »
1 # ##############################################################################
2 # # Script : Modern::PBP::Moose::Role #
3 # # -------------------------------------------------------------------------- #
4 # # Copyright : Free under 'GNU General Public License' or 'Artistic License' #
5 # # Authors : JVBSOFT - Jürgen von Brietzke 0.001 - 1.200 #
6 # # Version : 1.200 14.Feb.2016 #
7 # # -------------------------------------------------------------------------- #
8 # # Function : Implements the role for the change of name of the getter and #
9 # # setter methods. #
10 # # -------------------------------------------------------------------------- #
11 # # Language : PERL 5 (V) 5.12.xx - 5.22.xx #
12 # # Coding : ISO 8859-15 / Latin-9 UNIX-lineendings #
13 # # Standards : Perl-Best-Practices severity 1 (brutal) #
14 # # -------------------------------------------------------------------------- #
15 # # Pragmas : none #
16 # # -------------------------------------------------------------------------- #
17 # # Module : Moose ActivePerl-CORE-Module #
18 # # Moose::Exporter #
19 # # Moose::Util::MetaRole #
20 # # ------------------------------------------------------------- #
21 # # Modern::PBP::Perl ActivePerl-REPO-Module #
22 # ##############################################################################
23  
24 package Modern::PBP::Moose::Role 1.200;
25  
26 # ##############################################################################
27  
28 3 ▶use 5.012;
Subroutine BEGIN: called CC=1 SCAR=0.0
29  
30 3 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
31 3 ▶use Moose::Exporter;
Subroutine BEGIN: called CC=1 SCAR=0.0
32 3 ▶use Moose::Util::MetaRole;
Subroutine BEGIN: called CC=1 SCAR=0.0
33 0 ▶use Modern::PBP::Moose::Role::Attribute;
Subroutine BEGIN: called CC=1 SCAR=2.6
34 use Modern::PBP::Perl;
35  
36 # ##############################################################################
37  
38 my %metaroles = (
39 class_metaroles => { attribute => ['Modern::PBP::Moose::Role::Attribute'], },
40 role_metaroles => { applied_attribute => ['Modern::PBP::Moose::Role::Attribute'], },
41 );
42  
43 Moose::Exporter->setup_import_methods(%metaroles);
44  
45 # ##############################################################################
46  
47 no Moose;
48  
49 # ##############################################################################
50 # # E N D #
51 # ##############################################################################
52 1;
53 __END__
↑ Summary Moose.pm »