V1/StatusEvent/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::Cloud::Universalledger::V1::StatusEvent::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 'EventType',
11 as (Int | Str);
12  
13 declare 'StatusEvent',
14 as InstanceOf['Google::Cloud::Universalledger::V1::StatusEvent::StatusEvent'];
15  
16 coerce 'StatusEvent',
17 from HashRef, via { 'Google::Cloud::Universalledger::V1::StatusEvent::StatusEvent'->new($_) };
18  
19 declare 'RepeatedStatusEvent',
20 as ArrayRef[StatusEvent()];
21  
22 coerce 'RepeatedStatusEvent',
23 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Universalledger::V1::StatusEvent::StatusEvent'->new($_) } @$_ ] };
24  
25 declare 'MapStringStatusEvent',
26 as HashRef[StatusEvent()];
27  
28 declare 'EventDetails',
29 as InstanceOf['Google::Cloud::Universalledger::V1::StatusEvent::EventDetails'];
30  
31 coerce 'EventDetails',
32 from HashRef, via { 'Google::Cloud::Universalledger::V1::StatusEvent::EventDetails'->new($_) };
33  
34 declare 'RepeatedEventDetails',
35 as ArrayRef[EventDetails()];
36  
37 coerce 'RepeatedEventDetails',
38 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Universalledger::V1::StatusEvent::EventDetails'->new($_) } @$_ ] };
39  
40 declare 'MapStringEventDetails',
41 as HashRef[EventDetails()];
42  
43 declare 'ExecutionDetails',
44 as InstanceOf['Google::Cloud::Universalledger::V1::StatusEvent::ExecutionDetails'];
45  
46 coerce 'ExecutionDetails',
47 from HashRef, via { 'Google::Cloud::Universalledger::V1::StatusEvent::ExecutionDetails'->new($_) };
48  
49 declare 'RepeatedExecutionDetails',
50 as ArrayRef[ExecutionDetails()];
51  
52 coerce 'RepeatedExecutionDetails',
53 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Universalledger::V1::StatusEvent::ExecutionDetails'->new($_) } @$_ ] };
54  
55 declare 'MapStringExecutionDetails',
56 as HashRef[ExecutionDetails()];
57  
58 1;
59  
60 __END__