V1/Example/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::Cloud::Ces::V1::Example::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 'Example',
11 as InstanceOf['Google::Cloud::Ces::V1::Example::Example'];
12  
13 coerce 'Example',
14 from HashRef, via { 'Google::Cloud::Ces::V1::Example::Example'->new($_) };
15  
16 declare 'RepeatedExample',
17 as ArrayRef[Example()];
18  
19 coerce 'RepeatedExample',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::Example::Example'->new($_) } @$_ ] };
21  
22 declare 'MapStringExample',
23 as HashRef[Example()];
24  
25 declare 'Message',
26 as InstanceOf['Google::Cloud::Ces::V1::Example::Message'];
27  
28 coerce 'Message',
29 from HashRef, via { 'Google::Cloud::Ces::V1::Example::Message'->new($_) };
30  
31 declare 'RepeatedMessage',
32 as ArrayRef[Message()];
33  
34 coerce 'RepeatedMessage',
35 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::Example::Message'->new($_) } @$_ ] };
36  
37 declare 'MapStringMessage',
38 as HashRef[Message()];
39  
40 declare 'Chunk',
41 as InstanceOf['Google::Cloud::Ces::V1::Example::Chunk'];
42  
43 coerce 'Chunk',
44 from HashRef, via { 'Google::Cloud::Ces::V1::Example::Chunk'->new($_) };
45  
46 declare 'RepeatedChunk',
47 as ArrayRef[Chunk()];
48  
49 coerce 'RepeatedChunk',
50 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::Example::Chunk'->new($_) } @$_ ] };
51  
52 declare 'MapStringChunk',
53 as HashRef[Chunk()];
54  
55 declare 'Blob',
56 as InstanceOf['Google::Cloud::Ces::V1::Example::Blob'];
57  
58 coerce 'Blob',
59 from HashRef, via { 'Google::Cloud::Ces::V1::Example::Blob'->new($_) };
60  
61 declare 'RepeatedBlob',
62 as ArrayRef[Blob()];
63  
64 coerce 'RepeatedBlob',
65 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::Example::Blob'->new($_) } @$_ ] };
66  
67 declare 'MapStringBlob',
68 as HashRef[Blob()];
69  
70 declare 'Image',
71 as InstanceOf['Google::Cloud::Ces::V1::Example::Image'];
72  
73 coerce 'Image',
74 from HashRef, via { 'Google::Cloud::Ces::V1::Example::Image'->new($_) };
75  
76 declare 'RepeatedImage',
77 as ArrayRef[Image()];
78  
79 coerce 'RepeatedImage',
80 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::Example::Image'->new($_) } @$_ ] };
81  
82 declare 'MapStringImage',
83 as HashRef[Image()];
84  
85 declare 'ToolCall',
86 as InstanceOf['Google::Cloud::Ces::V1::Example::ToolCall'];
87  
88 coerce 'ToolCall',
89 from HashRef, via { 'Google::Cloud::Ces::V1::Example::ToolCall'->new($_) };
90  
91 declare 'RepeatedToolCall',
92 as ArrayRef[ToolCall()];
93  
94 coerce 'RepeatedToolCall',
95 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::Example::ToolCall'->new($_) } @$_ ] };
96  
97 declare 'MapStringToolCall',
98 as HashRef[ToolCall()];
99  
100 declare 'ToolResponse',
101 as InstanceOf['Google::Cloud::Ces::V1::Example::ToolResponse'];
102  
103 coerce 'ToolResponse',
104 from HashRef, via { 'Google::Cloud::Ces::V1::Example::ToolResponse'->new($_) };
105  
106 declare 'RepeatedToolResponse',
107 as ArrayRef[ToolResponse()];
108  
109 coerce 'RepeatedToolResponse',
110 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::Example::ToolResponse'->new($_) } @$_ ] };
111  
112 declare 'MapStringToolResponse',
113 as HashRef[ToolResponse()];
114  
115 declare 'AgentTransfer',
116 as InstanceOf['Google::Cloud::Ces::V1::Example::AgentTransfer'];
117  
118 coerce 'AgentTransfer',
119 from HashRef, via { 'Google::Cloud::Ces::V1::Example::AgentTransfer'->new($_) };
120  
121 declare 'RepeatedAgentTransfer',
122 as ArrayRef[AgentTransfer()];
123  
124 coerce 'RepeatedAgentTransfer',
125 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::Example::AgentTransfer'->new($_) } @$_ ] };
126  
127 declare 'MapStringAgentTransfer',
128 as HashRef[AgentTransfer()];
129  
130 1;
131  
132 __END__