V2/Product/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::Retail::V2::Product::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 'Product',
11 as InstanceOf['Google::Cloud::Retail::V2::Product::Product'];
12  
13 coerce 'Product',
14 from HashRef, via { 'Google::Cloud::Retail::V2::Product::Product'->new($_) };
15  
16 declare 'RepeatedProduct',
17 as ArrayRef[Product()];
18  
19 coerce 'RepeatedProduct',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::Product::Product'->new($_) } @$_ ] };
21  
22 declare 'MapStringProduct',
23 as HashRef[Product()];
24  
25 declare 'Type',
26 as (Int | Str);
27  
28 declare 'Availability',
29 as (Int | Str);
30  
31 declare 'AttributesEntry',
32 as InstanceOf['Google::Cloud::Retail::V2::Product::Product::AttributesEntry'];
33  
34 coerce 'AttributesEntry',
35 from HashRef, via { 'Google::Cloud::Retail::V2::Product::Product::AttributesEntry'->new($_) };
36  
37 declare 'RepeatedAttributesEntry',
38 as ArrayRef[AttributesEntry()];
39  
40 coerce 'RepeatedAttributesEntry',
41 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::Product::Product::AttributesEntry'->new($_) } @$_ ] };
42  
43 declare 'MapStringAttributesEntry',
44 as HashRef[AttributesEntry()];
45  
46 1;
47  
48 __END__