V1/DataStore/Types.pm untested

filter: Statementstmt 0.0% 0 / 44 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 49 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::Ces::V1::DataStore::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 'DataStore',
11 as InstanceOf['Google::Cloud::Ces::V1::DataStore::DataStore'];
12  
13 coerce 'DataStore',
14 from HashRef, via { 'Google::Cloud::Ces::V1::DataStore::DataStore'->new($_) };
15  
16 declare 'RepeatedDataStore',
17 as ArrayRef[DataStore()];
18  
19 coerce 'RepeatedDataStore',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::DataStore::DataStore'->new($_) } @$_ ] };
21  
22 declare 'MapStringDataStore',
23 as HashRef[DataStore()];
24  
25 declare 'DataStoreType',
26 as (Int | Str);
27  
28 declare 'DocumentProcessingMode',
29 as (Int | Str);
30  
31 declare 'ConnectorConfig',
32 as InstanceOf['Google::Cloud::Ces::V1::DataStore::DataStore::ConnectorConfig'];
33  
34 coerce 'ConnectorConfig',
35 from HashRef, via { 'Google::Cloud::Ces::V1::DataStore::DataStore::ConnectorConfig'->new($_) };
36  
37 declare 'RepeatedConnectorConfig',
38 as ArrayRef[ConnectorConfig()];
39  
40 coerce 'RepeatedConnectorConfig',
41 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::DataStore::DataStore::ConnectorConfig'->new($_) } @$_ ] };
42  
43 declare 'MapStringConnectorConfig',
44 as HashRef[ConnectorConfig()];
45  
46 1;
47  
48 __END__