V1/SubscriberEvent/Types.pm untested

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