V2alpha/Branch/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::Retail::V2alpha::Branch::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 'BranchView',
11 as (Int | Str);
12  
13 declare 'Branch',
14 as InstanceOf['Google::Cloud::Retail::V2alpha::Branch::Branch'];
15  
16 coerce 'Branch',
17 from HashRef, via { 'Google::Cloud::Retail::V2alpha::Branch::Branch'->new($_) };
18  
19 declare 'RepeatedBranch',
20 as ArrayRef[Branch()];
21  
22 coerce 'RepeatedBranch',
23 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Branch::Branch'->new($_) } @$_ ] };
24  
25 declare 'MapStringBranch',
26 as HashRef[Branch()];
27  
28 declare 'ProductCountStatistic',
29 as InstanceOf['Google::Cloud::Retail::V2alpha::Branch::Branch::ProductCountStatistic'];
30  
31 coerce 'ProductCountStatistic',
32 from HashRef, via { 'Google::Cloud::Retail::V2alpha::Branch::Branch::ProductCountStatistic'->new($_) };
33  
34 declare 'RepeatedProductCountStatistic',
35 as ArrayRef[ProductCountStatistic()];
36  
37 coerce 'RepeatedProductCountStatistic',
38 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Branch::Branch::ProductCountStatistic'->new($_) } @$_ ] };
39  
40 declare 'MapStringProductCountStatistic',
41 as HashRef[ProductCountStatistic()];
42  
43 declare 'ProductCountScope',
44 as (Int | Str);
45  
46 declare 'CountsEntry',
47 as InstanceOf['Google::Cloud::Retail::V2alpha::Branch::Branch::ProductCountStatistic::CountsEntry'];
48  
49 coerce 'CountsEntry',
50 from HashRef, via { 'Google::Cloud::Retail::V2alpha::Branch::Branch::ProductCountStatistic::CountsEntry'->new($_) };
51  
52 declare 'RepeatedCountsEntry',
53 as ArrayRef[CountsEntry()];
54  
55 coerce 'RepeatedCountsEntry',
56 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Branch::Branch::ProductCountStatistic::CountsEntry'->new($_) } @$_ ] };
57  
58 declare 'MapStringCountsEntry',
59 as HashRef[CountsEntry()];
60  
61 declare 'QualityMetric',
62 as InstanceOf['Google::Cloud::Retail::V2alpha::Branch::Branch::QualityMetric'];
63  
64 coerce 'QualityMetric',
65 from HashRef, via { 'Google::Cloud::Retail::V2alpha::Branch::Branch::QualityMetric'->new($_) };
66  
67 declare 'RepeatedQualityMetric',
68 as ArrayRef[QualityMetric()];
69  
70 coerce 'RepeatedQualityMetric',
71 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Branch::Branch::QualityMetric'->new($_) } @$_ ] };
72  
73 declare 'MapStringQualityMetric',
74 as HashRef[QualityMetric()];
75  
76 1;
77  
78 __END__