Firestore/V1/Common/Types.pm untested

filter: Statementstmt 0.0% 0 / 95 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 100 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::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 'DocumentMask',
11 as InstanceOf['Google::Firestore::V1::Common::DocumentMask'];
12  
13 coerce 'DocumentMask',
14 from HashRef, via { 'Google::Firestore::V1::Common::DocumentMask'->new($_) };
15  
16 declare 'RepeatedDocumentMask',
17 as ArrayRef[DocumentMask()];
18  
19 coerce 'RepeatedDocumentMask',
20 from ArrayRef[HashRef], via { [ map { 'Google::Firestore::V1::Common::DocumentMask'->new($_) } @$_ ] };
21  
22 declare 'MapStringDocumentMask',
23 as HashRef[DocumentMask()];
24  
25 declare 'Precondition',
26 as InstanceOf['Google::Firestore::V1::Common::Precondition'];
27  
28 coerce 'Precondition',
29 from HashRef, via { 'Google::Firestore::V1::Common::Precondition'->new($_) };
30  
31 declare 'RepeatedPrecondition',
32 as ArrayRef[Precondition()];
33  
34 coerce 'RepeatedPrecondition',
35 from ArrayRef[HashRef], via { [ map { 'Google::Firestore::V1::Common::Precondition'->new($_) } @$_ ] };
36  
37 declare 'MapStringPrecondition',
38 as HashRef[Precondition()];
39  
40 declare 'TransactionOptions',
41 as InstanceOf['Google::Firestore::V1::Common::TransactionOptions'];
42  
43 coerce 'TransactionOptions',
44 from HashRef, via { 'Google::Firestore::V1::Common::TransactionOptions'->new($_) };
45  
46 declare 'RepeatedTransactionOptions',
47 as ArrayRef[TransactionOptions()];
48  
49 coerce 'RepeatedTransactionOptions',
50 from ArrayRef[HashRef], via { [ map { 'Google::Firestore::V1::Common::TransactionOptions'->new($_) } @$_ ] };
51  
52 declare 'MapStringTransactionOptions',
53 as HashRef[TransactionOptions()];
54  
55 declare 'ConcurrencyMode',
56 as (Int | Str);
57  
58 declare 'ReadWrite',
59 as InstanceOf['Google::Firestore::V1::Common::TransactionOptions::ReadWrite'];
60  
61 coerce 'ReadWrite',
62 from HashRef, via { 'Google::Firestore::V1::Common::TransactionOptions::ReadWrite'->new($_) };
63  
64 declare 'RepeatedReadWrite',
65 as ArrayRef[ReadWrite()];
66  
67 coerce 'RepeatedReadWrite',
68 from ArrayRef[HashRef], via { [ map { 'Google::Firestore::V1::Common::TransactionOptions::ReadWrite'->new($_) } @$_ ] };
69  
70 declare 'MapStringReadWrite',
71 as HashRef[ReadWrite()];
72  
73 declare 'ReadOnly',
74 as InstanceOf['Google::Firestore::V1::Common::TransactionOptions::ReadOnly'];
75  
76 coerce 'ReadOnly',
77 from HashRef, via { 'Google::Firestore::V1::Common::TransactionOptions::ReadOnly'->new($_) };
78  
79 declare 'RepeatedReadOnly',
80 as ArrayRef[ReadOnly()];
81  
82 coerce 'RepeatedReadOnly',
83 from ArrayRef[HashRef], via { [ map { 'Google::Firestore::V1::Common::TransactionOptions::ReadOnly'->new($_) } @$_ ] };
84  
85 declare 'MapStringReadOnly',
86 as HashRef[ReadOnly()];
87  
88 declare 'RequestOptions',
89 as InstanceOf['Google::Firestore::V1::Common::RequestOptions'];
90  
91 coerce 'RequestOptions',
92 from HashRef, via { 'Google::Firestore::V1::Common::RequestOptions'->new($_) };
93  
94 declare 'RepeatedRequestOptions',
95 as ArrayRef[RequestOptions()];
96  
97 coerce 'RepeatedRequestOptions',
98 from ArrayRef[HashRef], via { [ map { 'Google::Firestore::V1::Common::RequestOptions'->new($_) } @$_ ] };
99  
100 declare 'MapStringRequestOptions',
101 as HashRef[RequestOptions()];
102  
103 1;
104  
105 __END__