V1/Common/Types.pm untested

filter: Statementstmt 0.0% 0 / 174 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 179 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Google::Cloud::Universalledger::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 'NoneValue',
11 as (Int | Str);
12  
13 declare 'KeySlot',
14 as (Int | Str);
15  
16 declare 'CurrencyValue',
17 as InstanceOf['Google::Cloud::Universalledger::V1::Common::CurrencyValue'];
18  
19 coerce 'CurrencyValue',
20 from HashRef, via { 'Google::Cloud::Universalledger::V1::Common::CurrencyValue'->new($_) };
21  
22 declare 'RepeatedCurrencyValue',
23 as ArrayRef[CurrencyValue()];
24  
25 coerce 'RepeatedCurrencyValue',
26 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Universalledger::V1::Common::CurrencyValue'->new($_) } @$_ ] };
27  
28 declare 'MapStringCurrencyValue',
29 as HashRef[CurrencyValue()];
30  
31 declare 'QualifiedCurrencyValue',
32 as InstanceOf['Google::Cloud::Universalledger::V1::Common::QualifiedCurrencyValue'];
33  
34 coerce 'QualifiedCurrencyValue',
35 from HashRef, via { 'Google::Cloud::Universalledger::V1::Common::QualifiedCurrencyValue'->new($_) };
36  
37 declare 'RepeatedQualifiedCurrencyValue',
38 as ArrayRef[QualifiedCurrencyValue()];
39  
40 coerce 'RepeatedQualifiedCurrencyValue',
41 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Universalledger::V1::Common::QualifiedCurrencyValue'->new($_) } @$_ ] };
42  
43 declare 'MapStringQualifiedCurrencyValue',
44 as HashRef[QualifiedCurrencyValue()];
45  
46 declare 'AmountValue',
47 as InstanceOf['Google::Cloud::Universalledger::V1::Common::AmountValue'];
48  
49 coerce 'AmountValue',
50 from HashRef, via { 'Google::Cloud::Universalledger::V1::Common::AmountValue'->new($_) };
51  
52 declare 'RepeatedAmountValue',
53 as ArrayRef[AmountValue()];
54  
55 coerce 'RepeatedAmountValue',
56 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Universalledger::V1::Common::AmountValue'->new($_) } @$_ ] };
57  
58 declare 'MapStringAmountValue',
59 as HashRef[AmountValue()];
60  
61 declare 'StringList',
62 as InstanceOf['Google::Cloud::Universalledger::V1::Common::StringList'];
63  
64 coerce 'StringList',
65 from HashRef, via { 'Google::Cloud::Universalledger::V1::Common::StringList'->new($_) };
66  
67 declare 'RepeatedStringList',
68 as ArrayRef[StringList()];
69  
70 coerce 'RepeatedStringList',
71 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Universalledger::V1::Common::StringList'->new($_) } @$_ ] };
72  
73 declare 'MapStringStringList',
74 as HashRef[StringList()];
75  
76 declare 'Int64List',
77 as InstanceOf['Google::Cloud::Universalledger::V1::Common::Int64List'];
78  
79 coerce 'Int64List',
80 from HashRef, via { 'Google::Cloud::Universalledger::V1::Common::Int64List'->new($_) };
81  
82 declare 'RepeatedInt64List',
83 as ArrayRef[Int64List()];
84  
85 coerce 'RepeatedInt64List',
86 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Universalledger::V1::Common::Int64List'->new($_) } @$_ ] };
87  
88 declare 'MapStringInt64List',
89 as HashRef[Int64List()];
90  
91 declare 'AccountValue',
92 as InstanceOf['Google::Cloud::Universalledger::V1::Common::AccountValue'];
93  
94 coerce 'AccountValue',
95 from HashRef, via { 'Google::Cloud::Universalledger::V1::Common::AccountValue'->new($_) };
96  
97 declare 'RepeatedAccountValue',
98 as ArrayRef[AccountValue()];
99  
100 coerce 'RepeatedAccountValue',
101 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Universalledger::V1::Common::AccountValue'->new($_) } @$_ ] };
102  
103 declare 'MapStringAccountValue',
104 as HashRef[AccountValue()];
105  
106 declare 'BoolList',
107 as InstanceOf['Google::Cloud::Universalledger::V1::Common::BoolList'];
108  
109 coerce 'BoolList',
110 from HashRef, via { 'Google::Cloud::Universalledger::V1::Common::BoolList'->new($_) };
111  
112 declare 'RepeatedBoolList',
113 as ArrayRef[BoolList()];
114  
115 coerce 'RepeatedBoolList',
116 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Universalledger::V1::Common::BoolList'->new($_) } @$_ ] };
117  
118 declare 'MapStringBoolList',
119 as HashRef[BoolList()];
120  
121 declare 'ContractValue',
122 as InstanceOf['Google::Cloud::Universalledger::V1::Common::ContractValue'];
123  
124 coerce 'ContractValue',
125 from HashRef, via { 'Google::Cloud::Universalledger::V1::Common::ContractValue'->new($_) };
126  
127 declare 'RepeatedContractValue',
128 as ArrayRef[ContractValue()];
129  
130 coerce 'RepeatedContractValue',
131 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Universalledger::V1::Common::ContractValue'->new($_) } @$_ ] };
132  
133 declare 'MapStringContractValue',
134 as HashRef[ContractValue()];
135  
136 declare 'DictValue',
137 as InstanceOf['Google::Cloud::Universalledger::V1::Common::DictValue'];
138  
139 coerce 'DictValue',
140 from HashRef, via { 'Google::Cloud::Universalledger::V1::Common::DictValue'->new($_) };
141  
142 declare 'RepeatedDictValue',
143 as ArrayRef[DictValue()];
144  
145 coerce 'RepeatedDictValue',
146 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Universalledger::V1::Common::DictValue'->new($_) } @$_ ] };
147  
148 declare 'MapStringDictValue',
149 as HashRef[DictValue()];
150  
151 declare 'ListValue',
152 as InstanceOf['Google::Cloud::Universalledger::V1::Common::ListValue'];
153  
154 coerce 'ListValue',
155 from HashRef, via { 'Google::Cloud::Universalledger::V1::Common::ListValue'->new($_) };
156  
157 declare 'RepeatedListValue',
158 as ArrayRef[ListValue()];
159  
160 coerce 'RepeatedListValue',
161 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Universalledger::V1::Common::ListValue'->new($_) } @$_ ] };
162  
163 declare 'MapStringListValue',
164 as HashRef[ListValue()];
165  
166 declare 'RepeatedValue',
167 as InstanceOf['Google::Cloud::Universalledger::V1::Common::RepeatedValue'];
168  
169 coerce 'RepeatedValue',
170 from HashRef, via { 'Google::Cloud::Universalledger::V1::Common::RepeatedValue'->new($_) };
171  
172 declare 'RepeatedRepeatedValue',
173 as ArrayRef[RepeatedValue()];
174  
175 coerce 'RepeatedRepeatedValue',
176 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Universalledger::V1::Common::RepeatedValue'->new($_) } @$_ ] };
177  
178 declare 'MapStringRepeatedValue',
179 as HashRef[RepeatedValue()];
180  
181 declare 'Value',
182 as InstanceOf['Google::Cloud::Universalledger::V1::Common::Value'];
183  
184 coerce 'Value',
185 from HashRef, via { 'Google::Cloud::Universalledger::V1::Common::Value'->new($_) };
186  
187 declare 'RepeatedValue',
188 as ArrayRef[Value()];
189  
190 coerce 'RepeatedValue',
191 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Universalledger::V1::Common::Value'->new($_) } @$_ ] };
192  
193 declare 'MapStringValue',
194 as HashRef[Value()];
195  
196 1;
197  
198 __END__