V1beta1/DataItems/Types.pm untested

filter: Statementstmt 0.0% 0 / 109 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 114 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::Automl::V1beta1::DataItems::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 'Image',
11 as InstanceOf['Google::Cloud::Automl::V1beta1::DataItems::Image'];
12  
13 coerce 'Image',
14 from HashRef, via { 'Google::Cloud::Automl::V1beta1::DataItems::Image'->new($_) };
15  
16 declare 'RepeatedImage',
17 as ArrayRef[Image()];
18  
19 coerce 'RepeatedImage',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Automl::V1beta1::DataItems::Image'->new($_) } @$_ ] };
21  
22 declare 'MapStringImage',
23 as HashRef[Image()];
24  
25 declare 'TextSnippet',
26 as InstanceOf['Google::Cloud::Automl::V1beta1::DataItems::TextSnippet'];
27  
28 coerce 'TextSnippet',
29 from HashRef, via { 'Google::Cloud::Automl::V1beta1::DataItems::TextSnippet'->new($_) };
30  
31 declare 'RepeatedTextSnippet',
32 as ArrayRef[TextSnippet()];
33  
34 coerce 'RepeatedTextSnippet',
35 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Automl::V1beta1::DataItems::TextSnippet'->new($_) } @$_ ] };
36  
37 declare 'MapStringTextSnippet',
38 as HashRef[TextSnippet()];
39  
40 declare 'DocumentDimensions',
41 as InstanceOf['Google::Cloud::Automl::V1beta1::DataItems::DocumentDimensions'];
42  
43 coerce 'DocumentDimensions',
44 from HashRef, via { 'Google::Cloud::Automl::V1beta1::DataItems::DocumentDimensions'->new($_) };
45  
46 declare 'RepeatedDocumentDimensions',
47 as ArrayRef[DocumentDimensions()];
48  
49 coerce 'RepeatedDocumentDimensions',
50 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Automl::V1beta1::DataItems::DocumentDimensions'->new($_) } @$_ ] };
51  
52 declare 'MapStringDocumentDimensions',
53 as HashRef[DocumentDimensions()];
54  
55 declare 'DocumentDimensionUnit',
56 as (Int | Str);
57  
58 declare 'Document',
59 as InstanceOf['Google::Cloud::Automl::V1beta1::DataItems::Document'];
60  
61 coerce 'Document',
62 from HashRef, via { 'Google::Cloud::Automl::V1beta1::DataItems::Document'->new($_) };
63  
64 declare 'RepeatedDocument',
65 as ArrayRef[Document()];
66  
67 coerce 'RepeatedDocument',
68 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Automl::V1beta1::DataItems::Document'->new($_) } @$_ ] };
69  
70 declare 'MapStringDocument',
71 as HashRef[Document()];
72  
73 declare 'Layout',
74 as InstanceOf['Google::Cloud::Automl::V1beta1::DataItems::Document::Layout'];
75  
76 coerce 'Layout',
77 from HashRef, via { 'Google::Cloud::Automl::V1beta1::DataItems::Document::Layout'->new($_) };
78  
79 declare 'RepeatedLayout',
80 as ArrayRef[Layout()];
81  
82 coerce 'RepeatedLayout',
83 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Automl::V1beta1::DataItems::Document::Layout'->new($_) } @$_ ] };
84  
85 declare 'MapStringLayout',
86 as HashRef[Layout()];
87  
88 declare 'TextSegmentType',
89 as (Int | Str);
90  
91 declare 'Row',
92 as InstanceOf['Google::Cloud::Automl::V1beta1::DataItems::Row'];
93  
94 coerce 'Row',
95 from HashRef, via { 'Google::Cloud::Automl::V1beta1::DataItems::Row'->new($_) };
96  
97 declare 'RepeatedRow',
98 as ArrayRef[Row()];
99  
100 coerce 'RepeatedRow',
101 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Automl::V1beta1::DataItems::Row'->new($_) } @$_ ] };
102  
103 declare 'MapStringRow',
104 as HashRef[Row()];
105  
106 declare 'ExamplePayload',
107 as InstanceOf['Google::Cloud::Automl::V1beta1::DataItems::ExamplePayload'];
108  
109 coerce 'ExamplePayload',
110 from HashRef, via { 'Google::Cloud::Automl::V1beta1::DataItems::ExamplePayload'->new($_) };
111  
112 declare 'RepeatedExamplePayload',
113 as ArrayRef[ExamplePayload()];
114  
115 coerce 'RepeatedExamplePayload',
116 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Automl::V1beta1::DataItems::ExamplePayload'->new($_) } @$_ ] };
117  
118 declare 'MapStringExamplePayload',
119 as HashRef[ExamplePayload()];
120  
121 1;
122  
123 __END__