Chloro/Types/Internal.pm

filter: Statementstmt 100% 26 / 26 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 32 / 32 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Chloro/Types.pm ↑ Summary
1 package Chloro::Types::Internal;
2  
3 12 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 12 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 12 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 12 our $VERSION = '0.07';
8  
9 12 ▶use MooseX::Types -declare => [
Subroutine BEGIN: called CC=1 SCAR=0.0
10 qw(
11 ArrayOfFields
12 Field
13 HashOfFields
14 Result
15 )
16 12 ];
17 12 ▶use MooseX::Types::Moose qw( ArrayRef HashRef );
Subroutine BEGIN: called CC=1 SCAR=0.0
18  
19 #<<<
20 12 class_type Field, { class => 'Chloro::Field'};
21  
22 12 subtype ArrayOfFields,
23 as ArrayRef[Field];
24  
25 12 subtype HashOfFields,
26 as HashRef[Field];
27  
28 coerce HashOfFields,
29 from ArrayOfFields,
30 6 ▶ via {
Subroutine __ANON__: called CC=1 SCAR=0.0
31 6 my $fields = $_;
32 6 return { map { $_->name() => $_ } @{$fields} };
33 12 };
34  
35 12 role_type Result, { role => 'Chloro::Role::Result' };
36 #>>>
37  
38 12 1;
« Chloro/Types.pm ↑ Summary