BuildInstance/Types.pm

filter: Statementstmt 96.9% 32 / 33 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 92.3% 12 / 13 Podpod n/a totaltotal 95.6% 44 / 46 CC 1 SCAR 0.1
CC
1
Cov
97%
__ANON__
1.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« BuildInstance.pm ↑ Summary
1 package MooseX::ShortCut::BuildInstance::Types;
2 2 our $AUTHORITY = 'cpan:JANDREW';
3 2 ▶use version; our $VERSION = version->declare('v1.44.2');
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶use MooseX::Types::Moose qw( Str ArrayRef HashRef CodeRef ClassName RoleName );
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 ▶use MooseX::Types::Structured qw( Optional Dict );
Subroutine BEGIN: called CC=1 SCAR=0.0
8 2 ▶use MooseX::Types -declare => [qw(
Subroutine BEGIN: called CC=1 SCAR=0.0
9 NameSpace SuperClassesList RolesList
10 Attributes Methods BuildClassDict
11 2 )];
12
13 #########1 Package Variables 3#########4#########5#########6#########7#########8#########9
14  
15  
16  
17 #########1 Type Library 3#########4#########5#########6#########7#########8#########9
18  
19 subtype NameSpace, as Str,
20 4 ▶ where{ $_ =~ /^[A-Za-z:]+$/ },
Subroutine __ANON__: called CC=1 SCAR=0.0
21 0 ▶ message{ "-$_- does not match: " . qr/^[A-Za-z:]+$/ };
Subroutine __ANON__: not called CC=1 SCAR=1.2
22
23 subtype SuperClassesList, as ArrayRef[ ClassName ],
24 4 ▶ where{ scalar( @$_ ) > 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
25
26 subtype RolesList, as ArrayRef[ RoleName ],
27 3 ▶ where{ scalar( @$_ ) > 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
28
29 subtype Attributes, as HashRef[ HashRef ],
30 1 ▶ where{ scalar( keys %$_ ) > 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
31
32 subtype Methods, as HashRef[ CodeRef ],
33 1 ▶ where{ scalar( keys %$_ ) > 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
34
35 subtype BuildClassDict, as Dict[
36 package => Optional[ NameSpace ],
37 superclasses => Optional[ SuperClassesList ],
38 roles => Optional[ RolesList ],
39 add_roles_in_sequence => Optional[ RolesList ],
40 add_attributes => Optional[ Attributes ],
41 add_methods => Optional[ Methods ],
42 ],
43 1 ▶ where{ scalar( keys( %$_ ) ) > 0 };
Subroutine __ANON__: called CC=1 SCAR=0.0
44  
45 #########1 Declared Coercions 3#########4#########5#########6#########7#########8#########9
46  
47  
48  
49 #########1 Private Methods 3#########4#########5#########6#########7#########8#########9
50  
51  
52  
53 #########1 Phinish 3#########4#########5#########6#########7#########8#########9
54
55 2 1;
56  
57 #########1 Documentation 3#########4#########5#########6#########7#########8#########9
58 __END__
« BuildInstance.pm ↑ Summary