Watcher/V1/Watch/Types.pm untested

filter: Statementstmt 0.0% 0 / 56 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 61 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Google::Watcher::V1::Watch::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 'Request',
11 as InstanceOf['Google::Watcher::V1::Watch::Request'];
12  
13 coerce 'Request',
14 from HashRef, via { 'Google::Watcher::V1::Watch::Request'->new($_) };
15  
16 declare 'RepeatedRequest',
17 as ArrayRef[Request()];
18  
19 coerce 'RepeatedRequest',
20 from ArrayRef[HashRef], via { [ map { 'Google::Watcher::V1::Watch::Request'->new($_) } @$_ ] };
21  
22 declare 'MapStringRequest',
23 as HashRef[Request()];
24  
25 declare 'ChangeBatch',
26 as InstanceOf['Google::Watcher::V1::Watch::ChangeBatch'];
27  
28 coerce 'ChangeBatch',
29 from HashRef, via { 'Google::Watcher::V1::Watch::ChangeBatch'->new($_) };
30  
31 declare 'RepeatedChangeBatch',
32 as ArrayRef[ChangeBatch()];
33  
34 coerce 'RepeatedChangeBatch',
35 from ArrayRef[HashRef], via { [ map { 'Google::Watcher::V1::Watch::ChangeBatch'->new($_) } @$_ ] };
36  
37 declare 'MapStringChangeBatch',
38 as HashRef[ChangeBatch()];
39  
40 declare 'Change',
41 as InstanceOf['Google::Watcher::V1::Watch::Change'];
42  
43 coerce 'Change',
44 from HashRef, via { 'Google::Watcher::V1::Watch::Change'->new($_) };
45  
46 declare 'RepeatedChange',
47 as ArrayRef[Change()];
48  
49 coerce 'RepeatedChange',
50 from ArrayRef[HashRef], via { [ map { 'Google::Watcher::V1::Watch::Change'->new($_) } @$_ ] };
51  
52 declare 'MapStringChange',
53 as HashRef[Change()];
54  
55 declare 'State',
56 as (Int | Str);
57  
58 1;
59  
60 __END__