V1/Agent/Types.pm untested

filter: Statementstmt 0.0% 0 / 83 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 88 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::Agentregistry::V1::Agent::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 'Agent',
11 as InstanceOf['Google::Cloud::Agentregistry::V1::Agent::Agent'];
12  
13 coerce 'Agent',
14 from HashRef, via { 'Google::Cloud::Agentregistry::V1::Agent::Agent'->new($_) };
15  
16 declare 'RepeatedAgent',
17 as ArrayRef[Agent()];
18  
19 coerce 'RepeatedAgent',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Agentregistry::V1::Agent::Agent'->new($_) } @$_ ] };
21  
22 declare 'MapStringAgent',
23 as HashRef[Agent()];
24  
25 declare 'Protocol',
26 as InstanceOf['Google::Cloud::Agentregistry::V1::Agent::Agent::Protocol'];
27  
28 coerce 'Protocol',
29 from HashRef, via { 'Google::Cloud::Agentregistry::V1::Agent::Agent::Protocol'->new($_) };
30  
31 declare 'RepeatedProtocol',
32 as ArrayRef[Protocol()];
33  
34 coerce 'RepeatedProtocol',
35 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Agentregistry::V1::Agent::Agent::Protocol'->new($_) } @$_ ] };
36  
37 declare 'MapStringProtocol',
38 as HashRef[Protocol()];
39  
40 declare 'Type',
41 as (Int | Str);
42  
43 declare 'Skill',
44 as InstanceOf['Google::Cloud::Agentregistry::V1::Agent::Agent::Skill'];
45  
46 coerce 'Skill',
47 from HashRef, via { 'Google::Cloud::Agentregistry::V1::Agent::Agent::Skill'->new($_) };
48  
49 declare 'RepeatedSkill',
50 as ArrayRef[Skill()];
51  
52 coerce 'RepeatedSkill',
53 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Agentregistry::V1::Agent::Agent::Skill'->new($_) } @$_ ] };
54  
55 declare 'MapStringSkill',
56 as HashRef[Skill()];
57  
58 declare 'Card',
59 as InstanceOf['Google::Cloud::Agentregistry::V1::Agent::Agent::Card'];
60  
61 coerce 'Card',
62 from HashRef, via { 'Google::Cloud::Agentregistry::V1::Agent::Agent::Card'->new($_) };
63  
64 declare 'RepeatedCard',
65 as ArrayRef[Card()];
66  
67 coerce 'RepeatedCard',
68 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Agentregistry::V1::Agent::Agent::Card'->new($_) } @$_ ] };
69  
70 declare 'MapStringCard',
71 as HashRef[Card()];
72  
73 declare 'Type',
74 as (Int | Str);
75  
76 declare 'AttributesEntry',
77 as InstanceOf['Google::Cloud::Agentregistry::V1::Agent::Agent::AttributesEntry'];
78  
79 coerce 'AttributesEntry',
80 from HashRef, via { 'Google::Cloud::Agentregistry::V1::Agent::Agent::AttributesEntry'->new($_) };
81  
82 declare 'RepeatedAttributesEntry',
83 as ArrayRef[AttributesEntry()];
84  
85 coerce 'RepeatedAttributesEntry',
86 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Agentregistry::V1::Agent::Agent::AttributesEntry'->new($_) } @$_ ] };
87  
88 declare 'MapStringAttributesEntry',
89 as HashRef[AttributesEntry()];
90  
91 1;
92  
93 __END__