V2beta/Project/Types.pm untested

filter: Statementstmt 0.0% 0 / 56 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 61 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::Retail::V2beta::Project::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 'AlertConfig',
11 as InstanceOf['Google::Cloud::Retail::V2beta::Project::AlertConfig'];
12  
13 coerce 'AlertConfig',
14 from HashRef, via { 'Google::Cloud::Retail::V2beta::Project::AlertConfig'->new($_) };
15  
16 declare 'RepeatedAlertConfig',
17 as ArrayRef[AlertConfig()];
18  
19 coerce 'RepeatedAlertConfig',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2beta::Project::AlertConfig'->new($_) } @$_ ] };
21  
22 declare 'MapStringAlertConfig',
23 as HashRef[AlertConfig()];
24  
25 declare 'AlertPolicy',
26 as InstanceOf['Google::Cloud::Retail::V2beta::Project::AlertConfig::AlertPolicy'];
27  
28 coerce 'AlertPolicy',
29 from HashRef, via { 'Google::Cloud::Retail::V2beta::Project::AlertConfig::AlertPolicy'->new($_) };
30  
31 declare 'RepeatedAlertPolicy',
32 as ArrayRef[AlertPolicy()];
33  
34 coerce 'RepeatedAlertPolicy',
35 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2beta::Project::AlertConfig::AlertPolicy'->new($_) } @$_ ] };
36  
37 declare 'MapStringAlertPolicy',
38 as HashRef[AlertPolicy()];
39  
40 declare 'EnrollStatus',
41 as (Int | Str);
42  
43 declare 'Recipient',
44 as InstanceOf['Google::Cloud::Retail::V2beta::Project::AlertConfig::AlertPolicy::Recipient'];
45  
46 coerce 'Recipient',
47 from HashRef, via { 'Google::Cloud::Retail::V2beta::Project::AlertConfig::AlertPolicy::Recipient'->new($_) };
48  
49 declare 'RepeatedRecipient',
50 as ArrayRef[Recipient()];
51  
52 coerce 'RepeatedRecipient',
53 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2beta::Project::AlertConfig::AlertPolicy::Recipient'->new($_) } @$_ ] };
54  
55 declare 'MapStringRecipient',
56 as HashRef[Recipient()];
57  
58 1;
59  
60 __END__