Spanner/Adapter/V1/Adapter/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::Spanner::Adapter::V1::Adapter::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 'AdaptMessageRequest',
11 as InstanceOf['Google::Spanner::Adapter::V1::Adapter::AdaptMessageRequest'];
12  
13 coerce 'AdaptMessageRequest',
14 from HashRef, via { 'Google::Spanner::Adapter::V1::Adapter::AdaptMessageRequest'->new($_) };
15  
16 declare 'RepeatedAdaptMessageRequest',
17 as ArrayRef[AdaptMessageRequest()];
18  
19 coerce 'RepeatedAdaptMessageRequest',
20 from ArrayRef[HashRef], via { [ map { 'Google::Spanner::Adapter::V1::Adapter::AdaptMessageRequest'->new($_) } @$_ ] };
21  
22 declare 'MapStringAdaptMessageRequest',
23 as HashRef[AdaptMessageRequest()];
24  
25 declare 'AttachmentsEntry',
26 as InstanceOf['Google::Spanner::Adapter::V1::Adapter::AdaptMessageRequest::AttachmentsEntry'];
27  
28 coerce 'AttachmentsEntry',
29 from HashRef, via { 'Google::Spanner::Adapter::V1::Adapter::AdaptMessageRequest::AttachmentsEntry'->new($_) };
30  
31 declare 'RepeatedAttachmentsEntry',
32 as ArrayRef[AttachmentsEntry()];
33  
34 coerce 'RepeatedAttachmentsEntry',
35 from ArrayRef[HashRef], via { [ map { 'Google::Spanner::Adapter::V1::Adapter::AdaptMessageRequest::AttachmentsEntry'->new($_) } @$_ ] };
36  
37 declare 'MapStringAttachmentsEntry',
38 as HashRef[AttachmentsEntry()];
39  
40 declare 'AdaptMessageResponse',
41 as InstanceOf['Google::Spanner::Adapter::V1::Adapter::AdaptMessageResponse'];
42  
43 coerce 'AdaptMessageResponse',
44 from HashRef, via { 'Google::Spanner::Adapter::V1::Adapter::AdaptMessageResponse'->new($_) };
45  
46 declare 'RepeatedAdaptMessageResponse',
47 as ArrayRef[AdaptMessageResponse()];
48  
49 coerce 'RepeatedAdaptMessageResponse',
50 from ArrayRef[HashRef], via { [ map { 'Google::Spanner::Adapter::V1::Adapter::AdaptMessageResponse'->new($_) } @$_ ] };
51  
52 declare 'MapStringAdaptMessageResponse',
53 as HashRef[AdaptMessageResponse()];
54  
55 declare 'StateUpdatesEntry',
56 as InstanceOf['Google::Spanner::Adapter::V1::Adapter::AdaptMessageResponse::StateUpdatesEntry'];
57  
58 coerce 'StateUpdatesEntry',
59 from HashRef, via { 'Google::Spanner::Adapter::V1::Adapter::AdaptMessageResponse::StateUpdatesEntry'->new($_) };
60  
61 declare 'RepeatedStateUpdatesEntry',
62 as ArrayRef[StateUpdatesEntry()];
63  
64 coerce 'RepeatedStateUpdatesEntry',
65 from ArrayRef[HashRef], via { [ map { 'Google::Spanner::Adapter::V1::Adapter::AdaptMessageResponse::StateUpdatesEntry'->new($_) } @$_ ] };
66  
67 declare 'MapStringStateUpdatesEntry',
68 as HashRef[StateUpdatesEntry()];
69  
70 declare 'Session',
71 as InstanceOf['Google::Spanner::Adapter::V1::Adapter::Session'];
72  
73 coerce 'Session',
74 from HashRef, via { 'Google::Spanner::Adapter::V1::Adapter::Session'->new($_) };
75  
76 declare 'RepeatedSession',
77 as ArrayRef[Session()];
78  
79 coerce 'RepeatedSession',
80 from ArrayRef[HashRef], via { [ map { 'Google::Spanner::Adapter::V1::Adapter::Session'->new($_) } @$_ ] };
81  
82 declare 'MapStringSession',
83 as HashRef[Session()];
84  
85 declare 'CreateSessionRequest',
86 as InstanceOf['Google::Spanner::Adapter::V1::Adapter::CreateSessionRequest'];
87  
88 coerce 'CreateSessionRequest',
89 from HashRef, via { 'Google::Spanner::Adapter::V1::Adapter::CreateSessionRequest'->new($_) };
90  
91 declare 'RepeatedCreateSessionRequest',
92 as ArrayRef[CreateSessionRequest()];
93  
94 coerce 'RepeatedCreateSessionRequest',
95 from ArrayRef[HashRef], via { [ map { 'Google::Spanner::Adapter::V1::Adapter::CreateSessionRequest'->new($_) } @$_ ] };
96  
97 declare 'MapStringCreateSessionRequest',
98 as HashRef[CreateSessionRequest()];
99  
100 1;
101  
102 __END__