Monitoring/V3/Common/Types.pm untested

filter: Statementstmt 0.0% 0 / 59 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 64 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Google::Monitoring::V3::Common::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 'ComparisonType',
11 as (Int | Str);
12  
13 declare 'ServiceTier',
14 as (Int | Str);
15  
16 declare 'TypedValue',
17 as InstanceOf['Google::Monitoring::V3::Common::TypedValue'];
18  
19 coerce 'TypedValue',
20 from HashRef, via { 'Google::Monitoring::V3::Common::TypedValue'->new($_) };
21  
22 declare 'RepeatedTypedValue',
23 as ArrayRef[TypedValue()];
24  
25 coerce 'RepeatedTypedValue',
26 from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::V3::Common::TypedValue'->new($_) } @$_ ] };
27  
28 declare 'MapStringTypedValue',
29 as HashRef[TypedValue()];
30  
31 declare 'TimeInterval',
32 as InstanceOf['Google::Monitoring::V3::Common::TimeInterval'];
33  
34 coerce 'TimeInterval',
35 from HashRef, via { 'Google::Monitoring::V3::Common::TimeInterval'->new($_) };
36  
37 declare 'RepeatedTimeInterval',
38 as ArrayRef[TimeInterval()];
39  
40 coerce 'RepeatedTimeInterval',
41 from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::V3::Common::TimeInterval'->new($_) } @$_ ] };
42  
43 declare 'MapStringTimeInterval',
44 as HashRef[TimeInterval()];
45  
46 declare 'Aggregation',
47 as InstanceOf['Google::Monitoring::V3::Common::Aggregation'];
48  
49 coerce 'Aggregation',
50 from HashRef, via { 'Google::Monitoring::V3::Common::Aggregation'->new($_) };
51  
52 declare 'RepeatedAggregation',
53 as ArrayRef[Aggregation()];
54  
55 coerce 'RepeatedAggregation',
56 from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::V3::Common::Aggregation'->new($_) } @$_ ] };
57  
58 declare 'MapStringAggregation',
59 as HashRef[Aggregation()];
60  
61 declare 'Aligner',
62 as (Int | Str);
63  
64 declare 'Reducer',
65 as (Int | Str);
66  
67 1;
68  
69 __END__