Longrunning/Operations/Types.pm untested

filter: Statementstmt 0.0% 0 / 120 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 125 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Google::Longrunning::Operations::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 'Operation',
11 as InstanceOf['Google::Longrunning::Operations::Operation'];
12  
13 coerce 'Operation',
14 from HashRef, via { 'Google::Longrunning::Operations::Operation'->new($_) };
15  
16 declare 'RepeatedOperation',
17 as ArrayRef[Operation()];
18  
19 coerce 'RepeatedOperation',
20 from ArrayRef[HashRef], via { [ map { 'Google::Longrunning::Operations::Operation'->new($_) } @$_ ] };
21  
22 declare 'MapStringOperation',
23 as HashRef[Operation()];
24  
25 declare 'GetOperationRequest',
26 as InstanceOf['Google::Longrunning::Operations::GetOperationRequest'];
27  
28 coerce 'GetOperationRequest',
29 from HashRef, via { 'Google::Longrunning::Operations::GetOperationRequest'->new($_) };
30  
31 declare 'RepeatedGetOperationRequest',
32 as ArrayRef[GetOperationRequest()];
33  
34 coerce 'RepeatedGetOperationRequest',
35 from ArrayRef[HashRef], via { [ map { 'Google::Longrunning::Operations::GetOperationRequest'->new($_) } @$_ ] };
36  
37 declare 'MapStringGetOperationRequest',
38 as HashRef[GetOperationRequest()];
39  
40 declare 'ListOperationsRequest',
41 as InstanceOf['Google::Longrunning::Operations::ListOperationsRequest'];
42  
43 coerce 'ListOperationsRequest',
44 from HashRef, via { 'Google::Longrunning::Operations::ListOperationsRequest'->new($_) };
45  
46 declare 'RepeatedListOperationsRequest',
47 as ArrayRef[ListOperationsRequest()];
48  
49 coerce 'RepeatedListOperationsRequest',
50 from ArrayRef[HashRef], via { [ map { 'Google::Longrunning::Operations::ListOperationsRequest'->new($_) } @$_ ] };
51  
52 declare 'MapStringListOperationsRequest',
53 as HashRef[ListOperationsRequest()];
54  
55 declare 'ListOperationsResponse',
56 as InstanceOf['Google::Longrunning::Operations::ListOperationsResponse'];
57  
58 coerce 'ListOperationsResponse',
59 from HashRef, via { 'Google::Longrunning::Operations::ListOperationsResponse'->new($_) };
60  
61 declare 'RepeatedListOperationsResponse',
62 as ArrayRef[ListOperationsResponse()];
63  
64 coerce 'RepeatedListOperationsResponse',
65 from ArrayRef[HashRef], via { [ map { 'Google::Longrunning::Operations::ListOperationsResponse'->new($_) } @$_ ] };
66  
67 declare 'MapStringListOperationsResponse',
68 as HashRef[ListOperationsResponse()];
69  
70 declare 'CancelOperationRequest',
71 as InstanceOf['Google::Longrunning::Operations::CancelOperationRequest'];
72  
73 coerce 'CancelOperationRequest',
74 from HashRef, via { 'Google::Longrunning::Operations::CancelOperationRequest'->new($_) };
75  
76 declare 'RepeatedCancelOperationRequest',
77 as ArrayRef[CancelOperationRequest()];
78  
79 coerce 'RepeatedCancelOperationRequest',
80 from ArrayRef[HashRef], via { [ map { 'Google::Longrunning::Operations::CancelOperationRequest'->new($_) } @$_ ] };
81  
82 declare 'MapStringCancelOperationRequest',
83 as HashRef[CancelOperationRequest()];
84  
85 declare 'DeleteOperationRequest',
86 as InstanceOf['Google::Longrunning::Operations::DeleteOperationRequest'];
87  
88 coerce 'DeleteOperationRequest',
89 from HashRef, via { 'Google::Longrunning::Operations::DeleteOperationRequest'->new($_) };
90  
91 declare 'RepeatedDeleteOperationRequest',
92 as ArrayRef[DeleteOperationRequest()];
93  
94 coerce 'RepeatedDeleteOperationRequest',
95 from ArrayRef[HashRef], via { [ map { 'Google::Longrunning::Operations::DeleteOperationRequest'->new($_) } @$_ ] };
96  
97 declare 'MapStringDeleteOperationRequest',
98 as HashRef[DeleteOperationRequest()];
99  
100 declare 'WaitOperationRequest',
101 as InstanceOf['Google::Longrunning::Operations::WaitOperationRequest'];
102  
103 coerce 'WaitOperationRequest',
104 from HashRef, via { 'Google::Longrunning::Operations::WaitOperationRequest'->new($_) };
105  
106 declare 'RepeatedWaitOperationRequest',
107 as ArrayRef[WaitOperationRequest()];
108  
109 coerce 'RepeatedWaitOperationRequest',
110 from ArrayRef[HashRef], via { [ map { 'Google::Longrunning::Operations::WaitOperationRequest'->new($_) } @$_ ] };
111  
112 declare 'MapStringWaitOperationRequest',
113 as HashRef[WaitOperationRequest()];
114  
115 declare 'OperationInfo',
116 as InstanceOf['Google::Longrunning::Operations::OperationInfo'];
117  
118 coerce 'OperationInfo',
119 from HashRef, via { 'Google::Longrunning::Operations::OperationInfo'->new($_) };
120  
121 declare 'RepeatedOperationInfo',
122 as ArrayRef[OperationInfo()];
123  
124 coerce 'RepeatedOperationInfo',
125 from ArrayRef[HashRef], via { [ map { 'Google::Longrunning::Operations::OperationInfo'->new($_) } @$_ ] };
126  
127 declare 'MapStringOperationInfo',
128 as HashRef[OperationInfo()];
129  
130 1;
131  
132 __END__