V1/Common/Types.pm untested

filter: Statementstmt 0.0% 0 / 134 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 139 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Grafeas::V1::Common::Types;
2  
3 use strict;
4 use warnings;
5  
6 use Type::Library -base;
7 use Type::Utils -all;
8 use Types::Standard -types;
9  
10 declare 'NoteKind',
11 as (Int | Str);
12  
13 declare 'RelatedUrl',
14 as InstanceOf['Grafeas::V1::Common::RelatedUrl'];
15  
16 coerce 'RelatedUrl',
17 from HashRef, via { 'Grafeas::V1::Common::RelatedUrl'->new($_) };
18  
19 declare 'RepeatedRelatedUrl',
20 as ArrayRef[RelatedUrl()];
21  
22 coerce 'RepeatedRelatedUrl',
23 from ArrayRef[HashRef], via { [ map { 'Grafeas::V1::Common::RelatedUrl'->new($_) } @$_ ] };
24  
25 declare 'MapStringRelatedUrl',
26 as HashRef[RelatedUrl()];
27  
28 declare 'Signature',
29 as InstanceOf['Grafeas::V1::Common::Signature'];
30  
31 coerce 'Signature',
32 from HashRef, via { 'Grafeas::V1::Common::Signature'->new($_) };
33  
34 declare 'RepeatedSignature',
35 as ArrayRef[Signature()];
36  
37 coerce 'RepeatedSignature',
38 from ArrayRef[HashRef], via { [ map { 'Grafeas::V1::Common::Signature'->new($_) } @$_ ] };
39  
40 declare 'MapStringSignature',
41 as HashRef[Signature()];
42  
43 declare 'Envelope',
44 as InstanceOf['Grafeas::V1::Common::Envelope'];
45  
46 coerce 'Envelope',
47 from HashRef, via { 'Grafeas::V1::Common::Envelope'->new($_) };
48  
49 declare 'RepeatedEnvelope',
50 as ArrayRef[Envelope()];
51  
52 coerce 'RepeatedEnvelope',
53 from ArrayRef[HashRef], via { [ map { 'Grafeas::V1::Common::Envelope'->new($_) } @$_ ] };
54  
55 declare 'MapStringEnvelope',
56 as HashRef[Envelope()];
57  
58 declare 'EnvelopeSignature',
59 as InstanceOf['Grafeas::V1::Common::EnvelopeSignature'];
60  
61 coerce 'EnvelopeSignature',
62 from HashRef, via { 'Grafeas::V1::Common::EnvelopeSignature'->new($_) };
63  
64 declare 'RepeatedEnvelopeSignature',
65 as ArrayRef[EnvelopeSignature()];
66  
67 coerce 'RepeatedEnvelopeSignature',
68 from ArrayRef[HashRef], via { [ map { 'Grafeas::V1::Common::EnvelopeSignature'->new($_) } @$_ ] };
69  
70 declare 'MapStringEnvelopeSignature',
71 as HashRef[EnvelopeSignature()];
72  
73 declare 'FileLocation',
74 as InstanceOf['Grafeas::V1::Common::FileLocation'];
75  
76 coerce 'FileLocation',
77 from HashRef, via { 'Grafeas::V1::Common::FileLocation'->new($_) };
78  
79 declare 'RepeatedFileLocation',
80 as ArrayRef[FileLocation()];
81  
82 coerce 'RepeatedFileLocation',
83 from ArrayRef[HashRef], via { [ map { 'Grafeas::V1::Common::FileLocation'->new($_) } @$_ ] };
84  
85 declare 'MapStringFileLocation',
86 as HashRef[FileLocation()];
87  
88 declare 'BaseImage',
89 as InstanceOf['Grafeas::V1::Common::BaseImage'];
90  
91 coerce 'BaseImage',
92 from HashRef, via { 'Grafeas::V1::Common::BaseImage'->new($_) };
93  
94 declare 'RepeatedBaseImage',
95 as ArrayRef[BaseImage()];
96  
97 coerce 'RepeatedBaseImage',
98 from ArrayRef[HashRef], via { [ map { 'Grafeas::V1::Common::BaseImage'->new($_) } @$_ ] };
99  
100 declare 'MapStringBaseImage',
101 as HashRef[BaseImage()];
102  
103 declare 'LayerDetails',
104 as InstanceOf['Grafeas::V1::Common::LayerDetails'];
105  
106 coerce 'LayerDetails',
107 from HashRef, via { 'Grafeas::V1::Common::LayerDetails'->new($_) };
108  
109 declare 'RepeatedLayerDetails',
110 as ArrayRef[LayerDetails()];
111  
112 coerce 'RepeatedLayerDetails',
113 from ArrayRef[HashRef], via { [ map { 'Grafeas::V1::Common::LayerDetails'->new($_) } @$_ ] };
114  
115 declare 'MapStringLayerDetails',
116 as HashRef[LayerDetails()];
117  
118 declare 'License',
119 as InstanceOf['Grafeas::V1::Common::License'];
120  
121 coerce 'License',
122 from HashRef, via { 'Grafeas::V1::Common::License'->new($_) };
123  
124 declare 'RepeatedLicense',
125 as ArrayRef[License()];
126  
127 coerce 'RepeatedLicense',
128 from ArrayRef[HashRef], via { [ map { 'Grafeas::V1::Common::License'->new($_) } @$_ ] };
129  
130 declare 'MapStringLicense',
131 as HashRef[License()];
132  
133 declare 'Digest',
134 as InstanceOf['Grafeas::V1::Common::Digest'];
135  
136 coerce 'Digest',
137 from HashRef, via { 'Grafeas::V1::Common::Digest'->new($_) };
138  
139 declare 'RepeatedDigest',
140 as ArrayRef[Digest()];
141  
142 coerce 'RepeatedDigest',
143 from ArrayRef[HashRef], via { [ map { 'Grafeas::V1::Common::Digest'->new($_) } @$_ ] };
144  
145 declare 'MapStringDigest',
146 as HashRef[Digest()];
147  
148 1;
149  
150 __END__