Firestore/V1/Document/Types.pm untested

filter: Statementstmt 0.0% 0 / 159 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 164 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Google::Firestore::V1::Document::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 'Document',
11 as InstanceOf['Google::Firestore::V1::Document::Document'];
12  
13 coerce 'Document',
14 from HashRef, via { 'Google::Firestore::V1::Document::Document'->new($_) };
15  
16 declare 'RepeatedDocument',
17 as ArrayRef[Document()];
18  
19 coerce 'RepeatedDocument',
20 from ArrayRef[HashRef], via { [ map { 'Google::Firestore::V1::Document::Document'->new($_) } @$_ ] };
21  
22 declare 'MapStringDocument',
23 as HashRef[Document()];
24  
25 declare 'FieldsEntry',
26 as InstanceOf['Google::Firestore::V1::Document::Document::FieldsEntry'];
27  
28 coerce 'FieldsEntry',
29 from HashRef, via { 'Google::Firestore::V1::Document::Document::FieldsEntry'->new($_) };
30  
31 declare 'RepeatedFieldsEntry',
32 as ArrayRef[FieldsEntry()];
33  
34 coerce 'RepeatedFieldsEntry',
35 from ArrayRef[HashRef], via { [ map { 'Google::Firestore::V1::Document::Document::FieldsEntry'->new($_) } @$_ ] };
36  
37 declare 'MapStringFieldsEntry',
38 as HashRef[FieldsEntry()];
39  
40 declare 'Value',
41 as InstanceOf['Google::Firestore::V1::Document::Value'];
42  
43 coerce 'Value',
44 from HashRef, via { 'Google::Firestore::V1::Document::Value'->new($_) };
45  
46 declare 'RepeatedValue',
47 as ArrayRef[Value()];
48  
49 coerce 'RepeatedValue',
50 from ArrayRef[HashRef], via { [ map { 'Google::Firestore::V1::Document::Value'->new($_) } @$_ ] };
51  
52 declare 'MapStringValue',
53 as HashRef[Value()];
54  
55 declare 'ArrayValue',
56 as InstanceOf['Google::Firestore::V1::Document::ArrayValue'];
57  
58 coerce 'ArrayValue',
59 from HashRef, via { 'Google::Firestore::V1::Document::ArrayValue'->new($_) };
60  
61 declare 'RepeatedArrayValue',
62 as ArrayRef[ArrayValue()];
63  
64 coerce 'RepeatedArrayValue',
65 from ArrayRef[HashRef], via { [ map { 'Google::Firestore::V1::Document::ArrayValue'->new($_) } @$_ ] };
66  
67 declare 'MapStringArrayValue',
68 as HashRef[ArrayValue()];
69  
70 declare 'MapValue',
71 as InstanceOf['Google::Firestore::V1::Document::MapValue'];
72  
73 coerce 'MapValue',
74 from HashRef, via { 'Google::Firestore::V1::Document::MapValue'->new($_) };
75  
76 declare 'RepeatedMapValue',
77 as ArrayRef[MapValue()];
78  
79 coerce 'RepeatedMapValue',
80 from ArrayRef[HashRef], via { [ map { 'Google::Firestore::V1::Document::MapValue'->new($_) } @$_ ] };
81  
82 declare 'MapStringMapValue',
83 as HashRef[MapValue()];
84  
85 declare 'FieldsEntry',
86 as InstanceOf['Google::Firestore::V1::Document::MapValue::FieldsEntry'];
87  
88 coerce 'FieldsEntry',
89 from HashRef, via { 'Google::Firestore::V1::Document::MapValue::FieldsEntry'->new($_) };
90  
91 declare 'RepeatedFieldsEntry',
92 as ArrayRef[FieldsEntry()];
93  
94 coerce 'RepeatedFieldsEntry',
95 from ArrayRef[HashRef], via { [ map { 'Google::Firestore::V1::Document::MapValue::FieldsEntry'->new($_) } @$_ ] };
96  
97 declare 'MapStringFieldsEntry',
98 as HashRef[FieldsEntry()];
99  
100 declare 'Function',
101 as InstanceOf['Google::Firestore::V1::Document::Function'];
102  
103 coerce 'Function',
104 from HashRef, via { 'Google::Firestore::V1::Document::Function'->new($_) };
105  
106 declare 'RepeatedFunction',
107 as ArrayRef[Function()];
108  
109 coerce 'RepeatedFunction',
110 from ArrayRef[HashRef], via { [ map { 'Google::Firestore::V1::Document::Function'->new($_) } @$_ ] };
111  
112 declare 'MapStringFunction',
113 as HashRef[Function()];
114  
115 declare 'OptionsEntry',
116 as InstanceOf['Google::Firestore::V1::Document::Function::OptionsEntry'];
117  
118 coerce 'OptionsEntry',
119 from HashRef, via { 'Google::Firestore::V1::Document::Function::OptionsEntry'->new($_) };
120  
121 declare 'RepeatedOptionsEntry',
122 as ArrayRef[OptionsEntry()];
123  
124 coerce 'RepeatedOptionsEntry',
125 from ArrayRef[HashRef], via { [ map { 'Google::Firestore::V1::Document::Function::OptionsEntry'->new($_) } @$_ ] };
126  
127 declare 'MapStringOptionsEntry',
128 as HashRef[OptionsEntry()];
129  
130 declare 'Pipeline',
131 as InstanceOf['Google::Firestore::V1::Document::Pipeline'];
132  
133 coerce 'Pipeline',
134 from HashRef, via { 'Google::Firestore::V1::Document::Pipeline'->new($_) };
135  
136 declare 'RepeatedPipeline',
137 as ArrayRef[Pipeline()];
138  
139 coerce 'RepeatedPipeline',
140 from ArrayRef[HashRef], via { [ map { 'Google::Firestore::V1::Document::Pipeline'->new($_) } @$_ ] };
141  
142 declare 'MapStringPipeline',
143 as HashRef[Pipeline()];
144  
145 declare 'Stage',
146 as InstanceOf['Google::Firestore::V1::Document::Pipeline::Stage'];
147  
148 coerce 'Stage',
149 from HashRef, via { 'Google::Firestore::V1::Document::Pipeline::Stage'->new($_) };
150  
151 declare 'RepeatedStage',
152 as ArrayRef[Stage()];
153  
154 coerce 'RepeatedStage',
155 from ArrayRef[HashRef], via { [ map { 'Google::Firestore::V1::Document::Pipeline::Stage'->new($_) } @$_ ] };
156  
157 declare 'MapStringStage',
158 as HashRef[Stage()];
159  
160 declare 'OptionsEntry',
161 as InstanceOf['Google::Firestore::V1::Document::Pipeline::Stage::OptionsEntry'];
162  
163 coerce 'OptionsEntry',
164 from HashRef, via { 'Google::Firestore::V1::Document::Pipeline::Stage::OptionsEntry'->new($_) };
165  
166 declare 'RepeatedOptionsEntry',
167 as ArrayRef[OptionsEntry()];
168  
169 coerce 'RepeatedOptionsEntry',
170 from ArrayRef[HashRef], via { [ map { 'Google::Firestore::V1::Document::Pipeline::Stage::OptionsEntry'->new($_) } @$_ ] };
171  
172 declare 'MapStringOptionsEntry',
173 as HashRef[OptionsEntry()];
174  
175 1;
176  
177 __END__