Spanner/V1/Location/Types.pm untested

filter: Statementstmt 0.0% 0 / 136 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 141 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Google::Spanner::V1::Location::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 'Range',
11 as InstanceOf['Google::Spanner::V1::Location::Range'];
12  
13 coerce 'Range',
14 from HashRef, via { 'Google::Spanner::V1::Location::Range'->new($_) };
15  
16 declare 'RepeatedRange',
17 as ArrayRef[Range()];
18  
19 coerce 'RepeatedRange',
20 from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Location::Range'->new($_) } @$_ ] };
21  
22 declare 'MapStringRange',
23 as HashRef[Range()];
24  
25 declare 'Tablet',
26 as InstanceOf['Google::Spanner::V1::Location::Tablet'];
27  
28 coerce 'Tablet',
29 from HashRef, via { 'Google::Spanner::V1::Location::Tablet'->new($_) };
30  
31 declare 'RepeatedTablet',
32 as ArrayRef[Tablet()];
33  
34 coerce 'RepeatedTablet',
35 from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Location::Tablet'->new($_) } @$_ ] };
36  
37 declare 'MapStringTablet',
38 as HashRef[Tablet()];
39  
40 declare 'Role',
41 as (Int | Str);
42  
43 declare 'Group',
44 as InstanceOf['Google::Spanner::V1::Location::Group'];
45  
46 coerce 'Group',
47 from HashRef, via { 'Google::Spanner::V1::Location::Group'->new($_) };
48  
49 declare 'RepeatedGroup',
50 as ArrayRef[Group()];
51  
52 coerce 'RepeatedGroup',
53 from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Location::Group'->new($_) } @$_ ] };
54  
55 declare 'MapStringGroup',
56 as HashRef[Group()];
57  
58 declare 'KeyRecipe',
59 as InstanceOf['Google::Spanner::V1::Location::KeyRecipe'];
60  
61 coerce 'KeyRecipe',
62 from HashRef, via { 'Google::Spanner::V1::Location::KeyRecipe'->new($_) };
63  
64 declare 'RepeatedKeyRecipe',
65 as ArrayRef[KeyRecipe()];
66  
67 coerce 'RepeatedKeyRecipe',
68 from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Location::KeyRecipe'->new($_) } @$_ ] };
69  
70 declare 'MapStringKeyRecipe',
71 as HashRef[KeyRecipe()];
72  
73 declare 'Part',
74 as InstanceOf['Google::Spanner::V1::Location::KeyRecipe::Part'];
75  
76 coerce 'Part',
77 from HashRef, via { 'Google::Spanner::V1::Location::KeyRecipe::Part'->new($_) };
78  
79 declare 'RepeatedPart',
80 as ArrayRef[Part()];
81  
82 coerce 'RepeatedPart',
83 from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Location::KeyRecipe::Part'->new($_) } @$_ ] };
84  
85 declare 'MapStringPart',
86 as HashRef[Part()];
87  
88 declare 'Order',
89 as (Int | Str);
90  
91 declare 'NullOrder',
92 as (Int | Str);
93  
94 declare 'RecipeList',
95 as InstanceOf['Google::Spanner::V1::Location::RecipeList'];
96  
97 coerce 'RecipeList',
98 from HashRef, via { 'Google::Spanner::V1::Location::RecipeList'->new($_) };
99  
100 declare 'RepeatedRecipeList',
101 as ArrayRef[RecipeList()];
102  
103 coerce 'RepeatedRecipeList',
104 from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Location::RecipeList'->new($_) } @$_ ] };
105  
106 declare 'MapStringRecipeList',
107 as HashRef[RecipeList()];
108  
109 declare 'CacheUpdate',
110 as InstanceOf['Google::Spanner::V1::Location::CacheUpdate'];
111  
112 coerce 'CacheUpdate',
113 from HashRef, via { 'Google::Spanner::V1::Location::CacheUpdate'->new($_) };
114  
115 declare 'RepeatedCacheUpdate',
116 as ArrayRef[CacheUpdate()];
117  
118 coerce 'RepeatedCacheUpdate',
119 from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Location::CacheUpdate'->new($_) } @$_ ] };
120  
121 declare 'MapStringCacheUpdate',
122 as HashRef[CacheUpdate()];
123  
124 declare 'RoutingHint',
125 as InstanceOf['Google::Spanner::V1::Location::RoutingHint'];
126  
127 coerce 'RoutingHint',
128 from HashRef, via { 'Google::Spanner::V1::Location::RoutingHint'->new($_) };
129  
130 declare 'RepeatedRoutingHint',
131 as ArrayRef[RoutingHint()];
132  
133 coerce 'RepeatedRoutingHint',
134 from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Location::RoutingHint'->new($_) } @$_ ] };
135  
136 declare 'MapStringRoutingHint',
137 as HashRef[RoutingHint()];
138  
139 declare 'SkippedTablet',
140 as InstanceOf['Google::Spanner::V1::Location::RoutingHint::SkippedTablet'];
141  
142 coerce 'SkippedTablet',
143 from HashRef, via { 'Google::Spanner::V1::Location::RoutingHint::SkippedTablet'->new($_) };
144  
145 declare 'RepeatedSkippedTablet',
146 as ArrayRef[SkippedTablet()];
147  
148 coerce 'RepeatedSkippedTablet',
149 from ArrayRef[HashRef], via { [ map { 'Google::Spanner::V1::Location::RoutingHint::SkippedTablet'->new($_) } @$_ ] };
150  
151 declare 'MapStringSkippedTablet',
152 as HashRef[SkippedTablet()];
153  
154 1;
155  
156 __END__