V1/TextAnnotation/Types.pm untested

filter: Statementstmt 0.0% 0 / 135 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 140 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::Vision::V1::TextAnnotation::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 'TextAnnotation',
11 as InstanceOf['Google::Cloud::Vision::V1::TextAnnotation::TextAnnotation'];
12  
13 coerce 'TextAnnotation',
14 from HashRef, via { 'Google::Cloud::Vision::V1::TextAnnotation::TextAnnotation'->new($_) };
15  
16 declare 'RepeatedTextAnnotation',
17 as ArrayRef[TextAnnotation()];
18  
19 coerce 'RepeatedTextAnnotation',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::TextAnnotation::TextAnnotation'->new($_) } @$_ ] };
21  
22 declare 'MapStringTextAnnotation',
23 as HashRef[TextAnnotation()];
24  
25 declare 'DetectedLanguage',
26 as InstanceOf['Google::Cloud::Vision::V1::TextAnnotation::TextAnnotation::DetectedLanguage'];
27  
28 coerce 'DetectedLanguage',
29 from HashRef, via { 'Google::Cloud::Vision::V1::TextAnnotation::TextAnnotation::DetectedLanguage'->new($_) };
30  
31 declare 'RepeatedDetectedLanguage',
32 as ArrayRef[DetectedLanguage()];
33  
34 coerce 'RepeatedDetectedLanguage',
35 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::TextAnnotation::TextAnnotation::DetectedLanguage'->new($_) } @$_ ] };
36  
37 declare 'MapStringDetectedLanguage',
38 as HashRef[DetectedLanguage()];
39  
40 declare 'DetectedBreak',
41 as InstanceOf['Google::Cloud::Vision::V1::TextAnnotation::TextAnnotation::DetectedBreak'];
42  
43 coerce 'DetectedBreak',
44 from HashRef, via { 'Google::Cloud::Vision::V1::TextAnnotation::TextAnnotation::DetectedBreak'->new($_) };
45  
46 declare 'RepeatedDetectedBreak',
47 as ArrayRef[DetectedBreak()];
48  
49 coerce 'RepeatedDetectedBreak',
50 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::TextAnnotation::TextAnnotation::DetectedBreak'->new($_) } @$_ ] };
51  
52 declare 'MapStringDetectedBreak',
53 as HashRef[DetectedBreak()];
54  
55 declare 'BreakType',
56 as (Int | Str);
57  
58 declare 'TextProperty',
59 as InstanceOf['Google::Cloud::Vision::V1::TextAnnotation::TextAnnotation::TextProperty'];
60  
61 coerce 'TextProperty',
62 from HashRef, via { 'Google::Cloud::Vision::V1::TextAnnotation::TextAnnotation::TextProperty'->new($_) };
63  
64 declare 'RepeatedTextProperty',
65 as ArrayRef[TextProperty()];
66  
67 coerce 'RepeatedTextProperty',
68 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::TextAnnotation::TextAnnotation::TextProperty'->new($_) } @$_ ] };
69  
70 declare 'MapStringTextProperty',
71 as HashRef[TextProperty()];
72  
73 declare 'Page',
74 as InstanceOf['Google::Cloud::Vision::V1::TextAnnotation::Page'];
75  
76 coerce 'Page',
77 from HashRef, via { 'Google::Cloud::Vision::V1::TextAnnotation::Page'->new($_) };
78  
79 declare 'RepeatedPage',
80 as ArrayRef[Page()];
81  
82 coerce 'RepeatedPage',
83 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::TextAnnotation::Page'->new($_) } @$_ ] };
84  
85 declare 'MapStringPage',
86 as HashRef[Page()];
87  
88 declare 'Block',
89 as InstanceOf['Google::Cloud::Vision::V1::TextAnnotation::Block'];
90  
91 coerce 'Block',
92 from HashRef, via { 'Google::Cloud::Vision::V1::TextAnnotation::Block'->new($_) };
93  
94 declare 'RepeatedBlock',
95 as ArrayRef[Block()];
96  
97 coerce 'RepeatedBlock',
98 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::TextAnnotation::Block'->new($_) } @$_ ] };
99  
100 declare 'MapStringBlock',
101 as HashRef[Block()];
102  
103 declare 'BlockType',
104 as (Int | Str);
105  
106 declare 'Paragraph',
107 as InstanceOf['Google::Cloud::Vision::V1::TextAnnotation::Paragraph'];
108  
109 coerce 'Paragraph',
110 from HashRef, via { 'Google::Cloud::Vision::V1::TextAnnotation::Paragraph'->new($_) };
111  
112 declare 'RepeatedParagraph',
113 as ArrayRef[Paragraph()];
114  
115 coerce 'RepeatedParagraph',
116 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::TextAnnotation::Paragraph'->new($_) } @$_ ] };
117  
118 declare 'MapStringParagraph',
119 as HashRef[Paragraph()];
120  
121 declare 'Word',
122 as InstanceOf['Google::Cloud::Vision::V1::TextAnnotation::Word'];
123  
124 coerce 'Word',
125 from HashRef, via { 'Google::Cloud::Vision::V1::TextAnnotation::Word'->new($_) };
126  
127 declare 'RepeatedWord',
128 as ArrayRef[Word()];
129  
130 coerce 'RepeatedWord',
131 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::TextAnnotation::Word'->new($_) } @$_ ] };
132  
133 declare 'MapStringWord',
134 as HashRef[Word()];
135  
136 declare 'Symbol',
137 as InstanceOf['Google::Cloud::Vision::V1::TextAnnotation::Symbol'];
138  
139 coerce 'Symbol',
140 from HashRef, via { 'Google::Cloud::Vision::V1::TextAnnotation::Symbol'->new($_) };
141  
142 declare 'RepeatedSymbol',
143 as ArrayRef[Symbol()];
144  
145 coerce 'RepeatedSymbol',
146 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::TextAnnotation::Symbol'->new($_) } @$_ ] };
147  
148 declare 'MapStringSymbol',
149 as HashRef[Symbol()];
150  
151 1;
152  
153 __END__