Api/Distribution/Types.pm untested

filter: Statementstmt 0.0% 0 / 107 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 112 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Google::Api::Distribution::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 'Distribution',
11 as InstanceOf['Google::Api::Distribution::Distribution'];
12  
13 coerce 'Distribution',
14 from HashRef, via { 'Google::Api::Distribution::Distribution'->new($_) };
15  
16 declare 'RepeatedDistribution',
17 as ArrayRef[Distribution()];
18  
19 coerce 'RepeatedDistribution',
20 from ArrayRef[HashRef], via { [ map { 'Google::Api::Distribution::Distribution'->new($_) } @$_ ] };
21  
22 declare 'MapStringDistribution',
23 as HashRef[Distribution()];
24  
25 declare 'Range',
26 as InstanceOf['Google::Api::Distribution::Distribution::Range'];
27  
28 coerce 'Range',
29 from HashRef, via { 'Google::Api::Distribution::Distribution::Range'->new($_) };
30  
31 declare 'RepeatedRange',
32 as ArrayRef[Range()];
33  
34 coerce 'RepeatedRange',
35 from ArrayRef[HashRef], via { [ map { 'Google::Api::Distribution::Distribution::Range'->new($_) } @$_ ] };
36  
37 declare 'MapStringRange',
38 as HashRef[Range()];
39  
40 declare 'BucketOptions',
41 as InstanceOf['Google::Api::Distribution::Distribution::BucketOptions'];
42  
43 coerce 'BucketOptions',
44 from HashRef, via { 'Google::Api::Distribution::Distribution::BucketOptions'->new($_) };
45  
46 declare 'RepeatedBucketOptions',
47 as ArrayRef[BucketOptions()];
48  
49 coerce 'RepeatedBucketOptions',
50 from ArrayRef[HashRef], via { [ map { 'Google::Api::Distribution::Distribution::BucketOptions'->new($_) } @$_ ] };
51  
52 declare 'MapStringBucketOptions',
53 as HashRef[BucketOptions()];
54  
55 declare 'Linear',
56 as InstanceOf['Google::Api::Distribution::Distribution::BucketOptions::Linear'];
57  
58 coerce 'Linear',
59 from HashRef, via { 'Google::Api::Distribution::Distribution::BucketOptions::Linear'->new($_) };
60  
61 declare 'RepeatedLinear',
62 as ArrayRef[Linear()];
63  
64 coerce 'RepeatedLinear',
65 from ArrayRef[HashRef], via { [ map { 'Google::Api::Distribution::Distribution::BucketOptions::Linear'->new($_) } @$_ ] };
66  
67 declare 'MapStringLinear',
68 as HashRef[Linear()];
69  
70 declare 'Exponential',
71 as InstanceOf['Google::Api::Distribution::Distribution::BucketOptions::Exponential'];
72  
73 coerce 'Exponential',
74 from HashRef, via { 'Google::Api::Distribution::Distribution::BucketOptions::Exponential'->new($_) };
75  
76 declare 'RepeatedExponential',
77 as ArrayRef[Exponential()];
78  
79 coerce 'RepeatedExponential',
80 from ArrayRef[HashRef], via { [ map { 'Google::Api::Distribution::Distribution::BucketOptions::Exponential'->new($_) } @$_ ] };
81  
82 declare 'MapStringExponential',
83 as HashRef[Exponential()];
84  
85 declare 'Explicit',
86 as InstanceOf['Google::Api::Distribution::Distribution::BucketOptions::Explicit'];
87  
88 coerce 'Explicit',
89 from HashRef, via { 'Google::Api::Distribution::Distribution::BucketOptions::Explicit'->new($_) };
90  
91 declare 'RepeatedExplicit',
92 as ArrayRef[Explicit()];
93  
94 coerce 'RepeatedExplicit',
95 from ArrayRef[HashRef], via { [ map { 'Google::Api::Distribution::Distribution::BucketOptions::Explicit'->new($_) } @$_ ] };
96  
97 declare 'MapStringExplicit',
98 as HashRef[Explicit()];
99  
100 declare 'Exemplar',
101 as InstanceOf['Google::Api::Distribution::Distribution::Exemplar'];
102  
103 coerce 'Exemplar',
104 from HashRef, via { 'Google::Api::Distribution::Distribution::Exemplar'->new($_) };
105  
106 declare 'RepeatedExemplar',
107 as ArrayRef[Exemplar()];
108  
109 coerce 'RepeatedExemplar',
110 from ArrayRef[HashRef], via { [ map { 'Google::Api::Distribution::Distribution::Exemplar'->new($_) } @$_ ] };
111  
112 declare 'MapStringExemplar',
113 as HashRef[Exemplar()];
114  
115 1;
116  
117 __END__