V1/DocumentSchema/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::Documentai::V1::DocumentSchema::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 'DocumentSchema',
11 as InstanceOf['Google::Cloud::Documentai::V1::DocumentSchema::DocumentSchema'];
12  
13 coerce 'DocumentSchema',
14 from HashRef, via { 'Google::Cloud::Documentai::V1::DocumentSchema::DocumentSchema'->new($_) };
15  
16 declare 'RepeatedDocumentSchema',
17 as ArrayRef[DocumentSchema()];
18  
19 coerce 'RepeatedDocumentSchema',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::DocumentSchema::DocumentSchema'->new($_) } @$_ ] };
21  
22 declare 'MapStringDocumentSchema',
23 as HashRef[DocumentSchema()];
24  
25 declare 'EntityType',
26 as InstanceOf['Google::Cloud::Documentai::V1::DocumentSchema::DocumentSchema::EntityType'];
27  
28 coerce 'EntityType',
29 from HashRef, via { 'Google::Cloud::Documentai::V1::DocumentSchema::DocumentSchema::EntityType'->new($_) };
30  
31 declare 'RepeatedEntityType',
32 as ArrayRef[EntityType()];
33  
34 coerce 'RepeatedEntityType',
35 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::DocumentSchema::DocumentSchema::EntityType'->new($_) } @$_ ] };
36  
37 declare 'MapStringEntityType',
38 as HashRef[EntityType()];
39  
40 declare 'EnumValues',
41 as InstanceOf['Google::Cloud::Documentai::V1::DocumentSchema::DocumentSchema::EntityType::EnumValues'];
42  
43 coerce 'EnumValues',
44 from HashRef, via { 'Google::Cloud::Documentai::V1::DocumentSchema::DocumentSchema::EntityType::EnumValues'->new($_) };
45  
46 declare 'RepeatedEnumValues',
47 as ArrayRef[EnumValues()];
48  
49 coerce 'RepeatedEnumValues',
50 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::DocumentSchema::DocumentSchema::EntityType::EnumValues'->new($_) } @$_ ] };
51  
52 declare 'MapStringEnumValues',
53 as HashRef[EnumValues()];
54  
55 declare 'Property',
56 as InstanceOf['Google::Cloud::Documentai::V1::DocumentSchema::DocumentSchema::EntityType::Property'];
57  
58 coerce 'Property',
59 from HashRef, via { 'Google::Cloud::Documentai::V1::DocumentSchema::DocumentSchema::EntityType::Property'->new($_) };
60  
61 declare 'RepeatedProperty',
62 as ArrayRef[Property()];
63  
64 coerce 'RepeatedProperty',
65 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::DocumentSchema::DocumentSchema::EntityType::Property'->new($_) } @$_ ] };
66  
67 declare 'MapStringProperty',
68 as HashRef[Property()];
69  
70 declare 'OccurrenceType',
71 as (Int | Str);
72  
73 declare 'Method',
74 as (Int | Str);
75  
76 declare 'Metadata',
77 as InstanceOf['Google::Cloud::Documentai::V1::DocumentSchema::DocumentSchema::Metadata'];
78  
79 coerce 'Metadata',
80 from HashRef, via { 'Google::Cloud::Documentai::V1::DocumentSchema::DocumentSchema::Metadata'->new($_) };
81  
82 declare 'RepeatedMetadata',
83 as ArrayRef[Metadata()];
84  
85 coerce 'RepeatedMetadata',
86 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::DocumentSchema::DocumentSchema::Metadata'->new($_) } @$_ ] };
87  
88 declare 'MapStringMetadata',
89 as HashRef[Metadata()];
90  
91 1;
92  
93 __END__