V1/Products/Types.pm untested

filter: Statementstmt 0.0% 0 / 69 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 74 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::Channel::V1::Products::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 'MediaType',
11 as (Int | Str);
12  
13 declare 'Product',
14 as InstanceOf['Google::Cloud::Channel::V1::Products::Product'];
15  
16 coerce 'Product',
17 from HashRef, via { 'Google::Cloud::Channel::V1::Products::Product'->new($_) };
18  
19 declare 'RepeatedProduct',
20 as ArrayRef[Product()];
21  
22 coerce 'RepeatedProduct',
23 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Products::Product'->new($_) } @$_ ] };
24  
25 declare 'MapStringProduct',
26 as HashRef[Product()];
27  
28 declare 'Sku',
29 as InstanceOf['Google::Cloud::Channel::V1::Products::Sku'];
30  
31 coerce 'Sku',
32 from HashRef, via { 'Google::Cloud::Channel::V1::Products::Sku'->new($_) };
33  
34 declare 'RepeatedSku',
35 as ArrayRef[Sku()];
36  
37 coerce 'RepeatedSku',
38 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Products::Sku'->new($_) } @$_ ] };
39  
40 declare 'MapStringSku',
41 as HashRef[Sku()];
42  
43 declare 'MarketingInfo',
44 as InstanceOf['Google::Cloud::Channel::V1::Products::MarketingInfo'];
45  
46 coerce 'MarketingInfo',
47 from HashRef, via { 'Google::Cloud::Channel::V1::Products::MarketingInfo'->new($_) };
48  
49 declare 'RepeatedMarketingInfo',
50 as ArrayRef[MarketingInfo()];
51  
52 coerce 'RepeatedMarketingInfo',
53 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Products::MarketingInfo'->new($_) } @$_ ] };
54  
55 declare 'MapStringMarketingInfo',
56 as HashRef[MarketingInfo()];
57  
58 declare 'Media',
59 as InstanceOf['Google::Cloud::Channel::V1::Products::Media'];
60  
61 coerce 'Media',
62 from HashRef, via { 'Google::Cloud::Channel::V1::Products::Media'->new($_) };
63  
64 declare 'RepeatedMedia',
65 as ArrayRef[Media()];
66  
67 coerce 'RepeatedMedia',
68 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Products::Media'->new($_) } @$_ ] };
69  
70 declare 'MapStringMedia',
71 as HashRef[Media()];
72  
73 1;
74  
75 __END__