V1/Schema/Types.pm untested

filter: Statementstmt 0.0% 0 / 70 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 75 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::Datacatalog::V1::Schema::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 'Schema',
11 as InstanceOf['Google::Cloud::Datacatalog::V1::Schema::Schema'];
12  
13 coerce 'Schema',
14 from HashRef, via { 'Google::Cloud::Datacatalog::V1::Schema::Schema'->new($_) };
15  
16 declare 'RepeatedSchema',
17 as ArrayRef[Schema()];
18  
19 coerce 'RepeatedSchema',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datacatalog::V1::Schema::Schema'->new($_) } @$_ ] };
21  
22 declare 'MapStringSchema',
23 as HashRef[Schema()];
24  
25 declare 'ColumnSchema',
26 as InstanceOf['Google::Cloud::Datacatalog::V1::Schema::ColumnSchema'];
27  
28 coerce 'ColumnSchema',
29 from HashRef, via { 'Google::Cloud::Datacatalog::V1::Schema::ColumnSchema'->new($_) };
30  
31 declare 'RepeatedColumnSchema',
32 as ArrayRef[ColumnSchema()];
33  
34 coerce 'RepeatedColumnSchema',
35 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datacatalog::V1::Schema::ColumnSchema'->new($_) } @$_ ] };
36  
37 declare 'MapStringColumnSchema',
38 as HashRef[ColumnSchema()];
39  
40 declare 'IndexingType',
41 as (Int | Str);
42  
43 declare 'LookerColumnSpec',
44 as InstanceOf['Google::Cloud::Datacatalog::V1::Schema::ColumnSchema::LookerColumnSpec'];
45  
46 coerce 'LookerColumnSpec',
47 from HashRef, via { 'Google::Cloud::Datacatalog::V1::Schema::ColumnSchema::LookerColumnSpec'->new($_) };
48  
49 declare 'RepeatedLookerColumnSpec',
50 as ArrayRef[LookerColumnSpec()];
51  
52 coerce 'RepeatedLookerColumnSpec',
53 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datacatalog::V1::Schema::ColumnSchema::LookerColumnSpec'->new($_) } @$_ ] };
54  
55 declare 'MapStringLookerColumnSpec',
56 as HashRef[LookerColumnSpec()];
57  
58 declare 'LookerColumnType',
59 as (Int | Str);
60  
61 declare 'FieldElementType',
62 as InstanceOf['Google::Cloud::Datacatalog::V1::Schema::ColumnSchema::FieldElementType'];
63  
64 coerce 'FieldElementType',
65 from HashRef, via { 'Google::Cloud::Datacatalog::V1::Schema::ColumnSchema::FieldElementType'->new($_) };
66  
67 declare 'RepeatedFieldElementType',
68 as ArrayRef[FieldElementType()];
69  
70 coerce 'RepeatedFieldElementType',
71 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datacatalog::V1::Schema::ColumnSchema::FieldElementType'->new($_) } @$_ ] };
72  
73 declare 'MapStringFieldElementType',
74 as HashRef[FieldElementType()];
75  
76 1;
77  
78 __END__