Stepford/Types/Internal.pm

filter: Statementstmt 92.5% 37 / 40 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 76.9% 10 / 13 Podpod n/a totaltotal 88.6% 47 / 53 CC 1 SCAR 1.5
CC
1
Cov
92%
__ANON__
2.0
__ANON__
2.0
__ANON__
1.1
CRAP 1.2
« Stepford/Role/Step.pm ↑ Summary Stepford/FinalStep.pm »
1 package Stepford::Types::Internal;
2  
3 43 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 43 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 43 our $VERSION = '0.006001';
7  
8 43 ▶use MooseX::Types::Common::String qw( NonEmptyStr );
Subroutine BEGIN: called CC=1 SCAR=0.0
9 43 ▶use MooseX::Types::Moose qw( ArrayRef Str );
Subroutine BEGIN: called CC=1 SCAR=0.0
10 43 ▶use Moose::Util::TypeConstraints qw( enum );
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 43 ▶use MooseX::Types -declare => [ qw(
Subroutine BEGIN: called CC=1 SCAR=0.0
13 ArrayOfClassPrefixes
14 ArrayOfDependencies
15 ArrayOfSteps
16 Logger
17 PossibleClassName
18 Step
19 43 ) ];
20  
21 43 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
22  
23 0 ▶subtype PossibleClassName, as Str, inline_as {
Subroutine __ANON__: not called CC=1 SCAR=6.9
24 ## no critic (Subroutines::ProtectPrivateSubs)
25 0 $_[0]->parent->_inline_check( $_[1] ) . ' && '
26 . $_[1]
27 . ' =~ /^\\p{L}\\w*(?:::\\w+)*$/';
28 43 };
29  
30 0 ▶subtype ArrayOfClassPrefixes, as ArrayRef [PossibleClassName], inline_as {
Subroutine __ANON__: not called CC=1 SCAR=6.9
31 ## no critic (Subroutines::ProtectPrivateSubs)
32 0 $_[0]->parent->_inline_check( $_[1] ) . " && \@{ $_[1] } >= 1";
33 43 };
34  
35 144 ▶coerce ArrayOfClassPrefixes, from PossibleClassName, via { [$_] };
Subroutine __ANON__: called CC=1 SCAR=0.0
36  
37 43 subtype ArrayOfDependencies, as ArrayRef [NonEmptyStr];
38  
39 0 ▶coerce ArrayOfDependencies, from NonEmptyStr, via { [$_] };
Subroutine __ANON__: not called CC=1 SCAR=1.2
40  
41 43 duck_type Logger, [qw( debug info notice warning error )];
42  
43 43 role_type Step, { role => 'Stepford::Role::Step' };
44  
45 43 subtype ArrayOfSteps, as ArrayRef [Step];
46  
47 146 ▶coerce ArrayOfSteps, from Step, via { [$_] };
Subroutine __ANON__: called CC=1 SCAR=0.0
48  
49 43 ▶no Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
50  
51 43 1;
52  
53 # ABSTRACT: Internal type definitions for Stepford
54  
55 __END__
« Stepford/Role/Step.pm ↑ Summary Stepford/FinalStep.pm »