Firestore/V1beta1/Document/Types.pm untested

filter: Statementstmt 0.0% 0 / 94 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 99 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::V1beta1::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::V1beta1::Document::Document'];
12  
13 coerce 'Document',
14 from HashRef, via { 'Google::Firestore::V1beta1::Document::Document'->new($_) };
15  
16 declare 'RepeatedDocument',
17 as ArrayRef[Document()];
18  
19 coerce 'RepeatedDocument',
20 from ArrayRef[HashRef], via { [ map { 'Google::Firestore::V1beta1::Document::Document'->new($_) } @$_ ] };
21  
22 declare 'MapStringDocument',
23 as HashRef[Document()];
24  
25 declare 'FieldsEntry',
26 as InstanceOf['Google::Firestore::V1beta1::Document::Document::FieldsEntry'];
27  
28 coerce 'FieldsEntry',
29 from HashRef, via { 'Google::Firestore::V1beta1::Document::Document::FieldsEntry'->new($_) };
30  
31 declare 'RepeatedFieldsEntry',
32 as ArrayRef[FieldsEntry()];
33  
34 coerce 'RepeatedFieldsEntry',
35 from ArrayRef[HashRef], via { [ map { 'Google::Firestore::V1beta1::Document::Document::FieldsEntry'->new($_) } @$_ ] };
36  
37 declare 'MapStringFieldsEntry',
38 as HashRef[FieldsEntry()];
39  
40 declare 'Value',
41 as InstanceOf['Google::Firestore::V1beta1::Document::Value'];
42  
43 coerce 'Value',
44 from HashRef, via { 'Google::Firestore::V1beta1::Document::Value'->new($_) };
45  
46 declare 'RepeatedValue',
47 as ArrayRef[Value()];
48  
49 coerce 'RepeatedValue',
50 from ArrayRef[HashRef], via { [ map { 'Google::Firestore::V1beta1::Document::Value'->new($_) } @$_ ] };
51  
52 declare 'MapStringValue',
53 as HashRef[Value()];
54  
55 declare 'ArrayValue',
56 as InstanceOf['Google::Firestore::V1beta1::Document::ArrayValue'];
57  
58 coerce 'ArrayValue',
59 from HashRef, via { 'Google::Firestore::V1beta1::Document::ArrayValue'->new($_) };
60  
61 declare 'RepeatedArrayValue',
62 as ArrayRef[ArrayValue()];
63  
64 coerce 'RepeatedArrayValue',
65 from ArrayRef[HashRef], via { [ map { 'Google::Firestore::V1beta1::Document::ArrayValue'->new($_) } @$_ ] };
66  
67 declare 'MapStringArrayValue',
68 as HashRef[ArrayValue()];
69  
70 declare 'MapValue',
71 as InstanceOf['Google::Firestore::V1beta1::Document::MapValue'];
72  
73 coerce 'MapValue',
74 from HashRef, via { 'Google::Firestore::V1beta1::Document::MapValue'->new($_) };
75  
76 declare 'RepeatedMapValue',
77 as ArrayRef[MapValue()];
78  
79 coerce 'RepeatedMapValue',
80 from ArrayRef[HashRef], via { [ map { 'Google::Firestore::V1beta1::Document::MapValue'->new($_) } @$_ ] };
81  
82 declare 'MapStringMapValue',
83 as HashRef[MapValue()];
84  
85 declare 'FieldsEntry',
86 as InstanceOf['Google::Firestore::V1beta1::Document::MapValue::FieldsEntry'];
87  
88 coerce 'FieldsEntry',
89 from HashRef, via { 'Google::Firestore::V1beta1::Document::MapValue::FieldsEntry'->new($_) };
90  
91 declare 'RepeatedFieldsEntry',
92 as ArrayRef[FieldsEntry()];
93  
94 coerce 'RepeatedFieldsEntry',
95 from ArrayRef[HashRef], via { [ map { 'Google::Firestore::V1beta1::Document::MapValue::FieldsEntry'->new($_) } @$_ ] };
96  
97 declare 'MapStringFieldsEntry',
98 as HashRef[FieldsEntry()];
99  
100 1;
101  
102 __END__