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