Translation/V3/Common/Types.pm untested

filter: Statementstmt 0.0% 0 / 108 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 113 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::Translation::V3::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 'OperationState',
11 as (Int | Str);
12  
13 declare 'GcsInputSource',
14 as InstanceOf['Google::Cloud::Translation::V3::Common::GcsInputSource'];
15  
16 coerce 'GcsInputSource',
17 from HashRef, via { 'Google::Cloud::Translation::V3::Common::GcsInputSource'->new($_) };
18  
19 declare 'RepeatedGcsInputSource',
20 as ArrayRef[GcsInputSource()];
21  
22 coerce 'RepeatedGcsInputSource',
23 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Translation::V3::Common::GcsInputSource'->new($_) } @$_ ] };
24  
25 declare 'MapStringGcsInputSource',
26 as HashRef[GcsInputSource()];
27  
28 declare 'FileInputSource',
29 as InstanceOf['Google::Cloud::Translation::V3::Common::FileInputSource'];
30  
31 coerce 'FileInputSource',
32 from HashRef, via { 'Google::Cloud::Translation::V3::Common::FileInputSource'->new($_) };
33  
34 declare 'RepeatedFileInputSource',
35 as ArrayRef[FileInputSource()];
36  
37 coerce 'RepeatedFileInputSource',
38 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Translation::V3::Common::FileInputSource'->new($_) } @$_ ] };
39  
40 declare 'MapStringFileInputSource',
41 as HashRef[FileInputSource()];
42  
43 declare 'GcsOutputDestination',
44 as InstanceOf['Google::Cloud::Translation::V3::Common::GcsOutputDestination'];
45  
46 coerce 'GcsOutputDestination',
47 from HashRef, via { 'Google::Cloud::Translation::V3::Common::GcsOutputDestination'->new($_) };
48  
49 declare 'RepeatedGcsOutputDestination',
50 as ArrayRef[GcsOutputDestination()];
51  
52 coerce 'RepeatedGcsOutputDestination',
53 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Translation::V3::Common::GcsOutputDestination'->new($_) } @$_ ] };
54  
55 declare 'MapStringGcsOutputDestination',
56 as HashRef[GcsOutputDestination()];
57  
58 declare 'GlossaryEntry',
59 as InstanceOf['Google::Cloud::Translation::V3::Common::GlossaryEntry'];
60  
61 coerce 'GlossaryEntry',
62 from HashRef, via { 'Google::Cloud::Translation::V3::Common::GlossaryEntry'->new($_) };
63  
64 declare 'RepeatedGlossaryEntry',
65 as ArrayRef[GlossaryEntry()];
66  
67 coerce 'RepeatedGlossaryEntry',
68 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Translation::V3::Common::GlossaryEntry'->new($_) } @$_ ] };
69  
70 declare 'MapStringGlossaryEntry',
71 as HashRef[GlossaryEntry()];
72  
73 declare 'GlossaryTermsPair',
74 as InstanceOf['Google::Cloud::Translation::V3::Common::GlossaryEntry::GlossaryTermsPair'];
75  
76 coerce 'GlossaryTermsPair',
77 from HashRef, via { 'Google::Cloud::Translation::V3::Common::GlossaryEntry::GlossaryTermsPair'->new($_) };
78  
79 declare 'RepeatedGlossaryTermsPair',
80 as ArrayRef[GlossaryTermsPair()];
81  
82 coerce 'RepeatedGlossaryTermsPair',
83 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Translation::V3::Common::GlossaryEntry::GlossaryTermsPair'->new($_) } @$_ ] };
84  
85 declare 'MapStringGlossaryTermsPair',
86 as HashRef[GlossaryTermsPair()];
87  
88 declare 'GlossaryTermsSet',
89 as InstanceOf['Google::Cloud::Translation::V3::Common::GlossaryEntry::GlossaryTermsSet'];
90  
91 coerce 'GlossaryTermsSet',
92 from HashRef, via { 'Google::Cloud::Translation::V3::Common::GlossaryEntry::GlossaryTermsSet'->new($_) };
93  
94 declare 'RepeatedGlossaryTermsSet',
95 as ArrayRef[GlossaryTermsSet()];
96  
97 coerce 'RepeatedGlossaryTermsSet',
98 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Translation::V3::Common::GlossaryEntry::GlossaryTermsSet'->new($_) } @$_ ] };
99  
100 declare 'MapStringGlossaryTermsSet',
101 as HashRef[GlossaryTermsSet()];
102  
103 declare 'GlossaryTerm',
104 as InstanceOf['Google::Cloud::Translation::V3::Common::GlossaryTerm'];
105  
106 coerce 'GlossaryTerm',
107 from HashRef, via { 'Google::Cloud::Translation::V3::Common::GlossaryTerm'->new($_) };
108  
109 declare 'RepeatedGlossaryTerm',
110 as ArrayRef[GlossaryTerm()];
111  
112 coerce 'RepeatedGlossaryTerm',
113 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Translation::V3::Common::GlossaryTerm'->new($_) } @$_ ] };
114  
115 declare 'MapStringGlossaryTerm',
116 as HashRef[GlossaryTerm()];
117  
118 1;
119  
120 __END__