Datastore/V1beta3/Query/Types.pm untested

filter: Statementstmt 0.0% 0 / 190 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 195 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Google::Datastore::V1beta3::Query::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 'EntityResult',
11 as InstanceOf['Google::Datastore::V1beta3::Query::EntityResult'];
12  
13 coerce 'EntityResult',
14 from HashRef, via { 'Google::Datastore::V1beta3::Query::EntityResult'->new($_) };
15  
16 declare 'RepeatedEntityResult',
17 as ArrayRef[EntityResult()];
18  
19 coerce 'RepeatedEntityResult',
20 from ArrayRef[HashRef], via { [ map { 'Google::Datastore::V1beta3::Query::EntityResult'->new($_) } @$_ ] };
21  
22 declare 'MapStringEntityResult',
23 as HashRef[EntityResult()];
24  
25 declare 'ResultType',
26 as (Int | Str);
27  
28 declare 'Query',
29 as InstanceOf['Google::Datastore::V1beta3::Query::Query'];
30  
31 coerce 'Query',
32 from HashRef, via { 'Google::Datastore::V1beta3::Query::Query'->new($_) };
33  
34 declare 'RepeatedQuery',
35 as ArrayRef[Query()];
36  
37 coerce 'RepeatedQuery',
38 from ArrayRef[HashRef], via { [ map { 'Google::Datastore::V1beta3::Query::Query'->new($_) } @$_ ] };
39  
40 declare 'MapStringQuery',
41 as HashRef[Query()];
42  
43 declare 'KindExpression',
44 as InstanceOf['Google::Datastore::V1beta3::Query::KindExpression'];
45  
46 coerce 'KindExpression',
47 from HashRef, via { 'Google::Datastore::V1beta3::Query::KindExpression'->new($_) };
48  
49 declare 'RepeatedKindExpression',
50 as ArrayRef[KindExpression()];
51  
52 coerce 'RepeatedKindExpression',
53 from ArrayRef[HashRef], via { [ map { 'Google::Datastore::V1beta3::Query::KindExpression'->new($_) } @$_ ] };
54  
55 declare 'MapStringKindExpression',
56 as HashRef[KindExpression()];
57  
58 declare 'PropertyReference',
59 as InstanceOf['Google::Datastore::V1beta3::Query::PropertyReference'];
60  
61 coerce 'PropertyReference',
62 from HashRef, via { 'Google::Datastore::V1beta3::Query::PropertyReference'->new($_) };
63  
64 declare 'RepeatedPropertyReference',
65 as ArrayRef[PropertyReference()];
66  
67 coerce 'RepeatedPropertyReference',
68 from ArrayRef[HashRef], via { [ map { 'Google::Datastore::V1beta3::Query::PropertyReference'->new($_) } @$_ ] };
69  
70 declare 'MapStringPropertyReference',
71 as HashRef[PropertyReference()];
72  
73 declare 'Projection',
74 as InstanceOf['Google::Datastore::V1beta3::Query::Projection'];
75  
76 coerce 'Projection',
77 from HashRef, via { 'Google::Datastore::V1beta3::Query::Projection'->new($_) };
78  
79 declare 'RepeatedProjection',
80 as ArrayRef[Projection()];
81  
82 coerce 'RepeatedProjection',
83 from ArrayRef[HashRef], via { [ map { 'Google::Datastore::V1beta3::Query::Projection'->new($_) } @$_ ] };
84  
85 declare 'MapStringProjection',
86 as HashRef[Projection()];
87  
88 declare 'PropertyOrder',
89 as InstanceOf['Google::Datastore::V1beta3::Query::PropertyOrder'];
90  
91 coerce 'PropertyOrder',
92 from HashRef, via { 'Google::Datastore::V1beta3::Query::PropertyOrder'->new($_) };
93  
94 declare 'RepeatedPropertyOrder',
95 as ArrayRef[PropertyOrder()];
96  
97 coerce 'RepeatedPropertyOrder',
98 from ArrayRef[HashRef], via { [ map { 'Google::Datastore::V1beta3::Query::PropertyOrder'->new($_) } @$_ ] };
99  
100 declare 'MapStringPropertyOrder',
101 as HashRef[PropertyOrder()];
102  
103 declare 'Direction',
104 as (Int | Str);
105  
106 declare 'Filter',
107 as InstanceOf['Google::Datastore::V1beta3::Query::Filter'];
108  
109 coerce 'Filter',
110 from HashRef, via { 'Google::Datastore::V1beta3::Query::Filter'->new($_) };
111  
112 declare 'RepeatedFilter',
113 as ArrayRef[Filter()];
114  
115 coerce 'RepeatedFilter',
116 from ArrayRef[HashRef], via { [ map { 'Google::Datastore::V1beta3::Query::Filter'->new($_) } @$_ ] };
117  
118 declare 'MapStringFilter',
119 as HashRef[Filter()];
120  
121 declare 'CompositeFilter',
122 as InstanceOf['Google::Datastore::V1beta3::Query::CompositeFilter'];
123  
124 coerce 'CompositeFilter',
125 from HashRef, via { 'Google::Datastore::V1beta3::Query::CompositeFilter'->new($_) };
126  
127 declare 'RepeatedCompositeFilter',
128 as ArrayRef[CompositeFilter()];
129  
130 coerce 'RepeatedCompositeFilter',
131 from ArrayRef[HashRef], via { [ map { 'Google::Datastore::V1beta3::Query::CompositeFilter'->new($_) } @$_ ] };
132  
133 declare 'MapStringCompositeFilter',
134 as HashRef[CompositeFilter()];
135  
136 declare 'Operator',
137 as (Int | Str);
138  
139 declare 'PropertyFilter',
140 as InstanceOf['Google::Datastore::V1beta3::Query::PropertyFilter'];
141  
142 coerce 'PropertyFilter',
143 from HashRef, via { 'Google::Datastore::V1beta3::Query::PropertyFilter'->new($_) };
144  
145 declare 'RepeatedPropertyFilter',
146 as ArrayRef[PropertyFilter()];
147  
148 coerce 'RepeatedPropertyFilter',
149 from ArrayRef[HashRef], via { [ map { 'Google::Datastore::V1beta3::Query::PropertyFilter'->new($_) } @$_ ] };
150  
151 declare 'MapStringPropertyFilter',
152 as HashRef[PropertyFilter()];
153  
154 declare 'Operator',
155 as (Int | Str);
156  
157 declare 'GqlQuery',
158 as InstanceOf['Google::Datastore::V1beta3::Query::GqlQuery'];
159  
160 coerce 'GqlQuery',
161 from HashRef, via { 'Google::Datastore::V1beta3::Query::GqlQuery'->new($_) };
162  
163 declare 'RepeatedGqlQuery',
164 as ArrayRef[GqlQuery()];
165  
166 coerce 'RepeatedGqlQuery',
167 from ArrayRef[HashRef], via { [ map { 'Google::Datastore::V1beta3::Query::GqlQuery'->new($_) } @$_ ] };
168  
169 declare 'MapStringGqlQuery',
170 as HashRef[GqlQuery()];
171  
172 declare 'NamedBindingsEntry',
173 as InstanceOf['Google::Datastore::V1beta3::Query::GqlQuery::NamedBindingsEntry'];
174  
175 coerce 'NamedBindingsEntry',
176 from HashRef, via { 'Google::Datastore::V1beta3::Query::GqlQuery::NamedBindingsEntry'->new($_) };
177  
178 declare 'RepeatedNamedBindingsEntry',
179 as ArrayRef[NamedBindingsEntry()];
180  
181 coerce 'RepeatedNamedBindingsEntry',
182 from ArrayRef[HashRef], via { [ map { 'Google::Datastore::V1beta3::Query::GqlQuery::NamedBindingsEntry'->new($_) } @$_ ] };
183  
184 declare 'MapStringNamedBindingsEntry',
185 as HashRef[NamedBindingsEntry()];
186  
187 declare 'GqlQueryParameter',
188 as InstanceOf['Google::Datastore::V1beta3::Query::GqlQueryParameter'];
189  
190 coerce 'GqlQueryParameter',
191 from HashRef, via { 'Google::Datastore::V1beta3::Query::GqlQueryParameter'->new($_) };
192  
193 declare 'RepeatedGqlQueryParameter',
194 as ArrayRef[GqlQueryParameter()];
195  
196 coerce 'RepeatedGqlQueryParameter',
197 from ArrayRef[HashRef], via { [ map { 'Google::Datastore::V1beta3::Query::GqlQueryParameter'->new($_) } @$_ ] };
198  
199 declare 'MapStringGqlQueryParameter',
200 as HashRef[GqlQueryParameter()];
201  
202 declare 'QueryResultBatch',
203 as InstanceOf['Google::Datastore::V1beta3::Query::QueryResultBatch'];
204  
205 coerce 'QueryResultBatch',
206 from HashRef, via { 'Google::Datastore::V1beta3::Query::QueryResultBatch'->new($_) };
207  
208 declare 'RepeatedQueryResultBatch',
209 as ArrayRef[QueryResultBatch()];
210  
211 coerce 'RepeatedQueryResultBatch',
212 from ArrayRef[HashRef], via { [ map { 'Google::Datastore::V1beta3::Query::QueryResultBatch'->new($_) } @$_ ] };
213  
214 declare 'MapStringQueryResultBatch',
215 as HashRef[QueryResultBatch()];
216  
217 declare 'MoreResultsType',
218 as (Int | Str);
219  
220 1;
221  
222 __END__