LazyInflator/Meta/Role/ApplicationToClass.pm

filter: Statementstmt 100% 17 / 17 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 95.4% 21 / 22 CC 2 SCAR 4.1
CC
2
Cov
95%
__ANON__
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.5
« Deflator.pm ↑ Summary LazyInflator/Meta/Role/Method/Accessor.pm »
1 #
2 # This file is part of MooseX-Attribute-Deflator
3 #
4 # This software is Copyright (c) 2012 by Moritz Onken.
5 #
6 # This is free software, licensed under:
7 #
8 # The (three-clause) BSD License
9 #
10 package MooseX::Attribute::LazyInflator::Meta::Role::ApplicationToClass;
11 {
12 6 $MooseX::Attribute::LazyInflator::Meta::Role::ApplicationToClass::VERSION = '2.2.2';
13 }
14 6 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 6 ▶use MooseX::Attribute::LazyInflator::Role::Class;
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 4 ▶around apply => sub {
Subroutine __ANON__: called CC=2 SCAR=7.0
18 4 my $orig = shift;
19 4 my $self = shift;
20 4 my $role = shift;
21 4 my $class = shift;
22 4 ▶ $class =
Branch: 1 branch
BranchTrueFalseTotal
if "Moose"->VERSION < "1.99" 0 4 4
23 Moose::Util::MetaRole::apply_metaroles(
24 for => $class,
25 class_metaroles => {
26 constructor => [
27 'MooseX::Attribute::LazyInflator::Meta::Role::Method::Constructor'
28 ],
29 } ) if ( Moose->VERSION < 1.9900 );
30  
31 4 Moose::Util::MetaRole::apply_base_class_roles(
32 for => $class->name,
33 roles => ['MooseX::Attribute::LazyInflator::Role::Class']
34 );
35  
36 4 $self->$orig( $role, $class );
37 6 };
38  
39 6 1;
40  
41 __END__
« Deflator.pm ↑ Summary LazyInflator/Meta/Role/Method/Accessor.pm »