Modern/Role.pm

filter: Statementstmt 70.0% 21 / 30 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod 0.0% 0 / 1 totaltotal 71.0% 27 / 38 CC 1 SCAR 1.3
CC
1
Cov
70%
init_meta
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
↑ Summary Modern.pm »
1 package MooseX::Modern::Role;
2 1 $MooseX::Modern::Role::VERSION = '0.0200';
3 1 ▶use Moose::Role ();
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Moose::Exporter;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use Moose::Util::TypeConstraints ();
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use MooseX::AttributeShortcuts ();
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use MooseX::HasDefaults::RO ();
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 ▶use namespace::autoclean ();
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 1 Moose::Exporter->setup_import_methods(also => ['Moose::Role']);
12  
13 0 ▶sub init_meta {
Subroutine init_meta: not called CC=1 SCAR=6.9
Pod undocumented
14 0 my $class = shift;
15 0 my $caller = scalar caller();
16 0 my %params = @_;
17 0 my $for_class = $params{for_class};
18  
19 0 Moose::Role->init_meta(@_);
20 0 Moose::Util::TypeConstraints->import({ into => $for_class });
21 0 MooseX::AttributeShortcuts->init_meta(@_);
22 0 MooseX::HasDefaults::RO->import({ into => $caller });
23  
24 0 namespace::autoclean->import( -cleanee => $for_class );
25 }
26  
27 1 1;
28  
29 # ABSTRACT: Precision roles for Modern Perl
30  
31 __END__
↑ Summary Modern.pm »