Google/Backstory/Collection/Types.pm untested

filter: Statementstmt 0.0% 0 / 125 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 130 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Google::Backstory::Collection::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 'Collection',
11 as InstanceOf['Google::Backstory::Collection::Collection'];
12  
13 coerce 'Collection',
14 from HashRef, via { 'Google::Backstory::Collection::Collection'->new($_) };
15  
16 declare 'RepeatedCollection',
17 as ArrayRef[Collection()];
18  
19 coerce 'RepeatedCollection',
20 from ArrayRef[HashRef], via { [ map { 'Google::Backstory::Collection::Collection'->new($_) } @$_ ] };
21  
22 declare 'MapStringCollection',
23 as HashRef[Collection()];
24  
25 declare 'CollectionType',
26 as (Int | Str);
27  
28 declare 'DetectionTimingDetails',
29 as (Int | Str);
30  
31 declare 'RunFrequency',
32 as (Int | Str);
33  
34 declare 'EntityGraphEnrichment',
35 as InstanceOf['Google::Backstory::Collection::EntityGraphEnrichment'];
36  
37 coerce 'EntityGraphEnrichment',
38 from HashRef, via { 'Google::Backstory::Collection::EntityGraphEnrichment'->new($_) };
39  
40 declare 'RepeatedEntityGraphEnrichment',
41 as ArrayRef[EntityGraphEnrichment()];
42  
43 coerce 'RepeatedEntityGraphEnrichment',
44 from ArrayRef[HashRef], via { [ map { 'Google::Backstory::Collection::EntityGraphEnrichment'->new($_) } @$_ ] };
45  
46 declare 'MapStringEntityGraphEnrichment',
47 as HashRef[EntityGraphEnrichment()];
48  
49 declare 'EnrichmentType',
50 as (Int | Str);
51  
52 declare 'DataTableRowInfo',
53 as InstanceOf['Google::Backstory::Collection::DataTableRowInfo'];
54  
55 coerce 'DataTableRowInfo',
56 from HashRef, via { 'Google::Backstory::Collection::DataTableRowInfo'->new($_) };
57  
58 declare 'RepeatedDataTableRowInfo',
59 as ArrayRef[DataTableRowInfo()];
60  
61 coerce 'RepeatedDataTableRowInfo',
62 from ArrayRef[HashRef], via { [ map { 'Google::Backstory::Collection::DataTableRowInfo'->new($_) } @$_ ] };
63  
64 declare 'MapStringDataTableRowInfo',
65 as HashRef[DataTableRowInfo()];
66  
67 declare 'LatencyMetrics',
68 as InstanceOf['Google::Backstory::Collection::LatencyMetrics'];
69  
70 coerce 'LatencyMetrics',
71 from HashRef, via { 'Google::Backstory::Collection::LatencyMetrics'->new($_) };
72  
73 declare 'RepeatedLatencyMetrics',
74 as ArrayRef[LatencyMetrics()];
75  
76 coerce 'RepeatedLatencyMetrics',
77 from ArrayRef[HashRef], via { [ map { 'Google::Backstory::Collection::LatencyMetrics'->new($_) } @$_ ] };
78  
79 declare 'MapStringLatencyMetrics',
80 as HashRef[LatencyMetrics()];
81  
82 declare 'Reference',
83 as InstanceOf['Google::Backstory::Collection::Reference'];
84  
85 coerce 'Reference',
86 from HashRef, via { 'Google::Backstory::Collection::Reference'->new($_) };
87  
88 declare 'RepeatedReference',
89 as ArrayRef[Reference()];
90  
91 coerce 'RepeatedReference',
92 from ArrayRef[HashRef], via { [ map { 'Google::Backstory::Collection::Reference'->new($_) } @$_ ] };
93  
94 declare 'MapStringReference',
95 as HashRef[Reference()];
96  
97 declare 'Element',
98 as InstanceOf['Google::Backstory::Collection::Element'];
99  
100 coerce 'Element',
101 from HashRef, via { 'Google::Backstory::Collection::Element'->new($_) };
102  
103 declare 'RepeatedElement',
104 as ArrayRef[Element()];
105  
106 coerce 'RepeatedElement',
107 from ArrayRef[HashRef], via { [ map { 'Google::Backstory::Collection::Element'->new($_) } @$_ ] };
108  
109 declare 'MapStringElement',
110 as HashRef[Element()];
111  
112 declare 'ResponsePlatformInfo',
113 as InstanceOf['Google::Backstory::Collection::ResponsePlatformInfo'];
114  
115 coerce 'ResponsePlatformInfo',
116 from HashRef, via { 'Google::Backstory::Collection::ResponsePlatformInfo'->new($_) };
117  
118 declare 'RepeatedResponsePlatformInfo',
119 as ArrayRef[ResponsePlatformInfo()];
120  
121 coerce 'RepeatedResponsePlatformInfo',
122 from ArrayRef[HashRef], via { [ map { 'Google::Backstory::Collection::ResponsePlatformInfo'->new($_) } @$_ ] };
123  
124 declare 'MapStringResponsePlatformInfo',
125 as HashRef[ResponsePlatformInfo()];
126  
127 declare 'ResponsePlatformType',
128 as (Int | Str);
129  
130 declare 'SoarAlertMetadata',
131 as InstanceOf['Google::Backstory::Collection::SoarAlertMetadata'];
132  
133 coerce 'SoarAlertMetadata',
134 from HashRef, via { 'Google::Backstory::Collection::SoarAlertMetadata'->new($_) };
135  
136 declare 'RepeatedSoarAlertMetadata',
137 as ArrayRef[SoarAlertMetadata()];
138  
139 coerce 'RepeatedSoarAlertMetadata',
140 from ArrayRef[HashRef], via { [ map { 'Google::Backstory::Collection::SoarAlertMetadata'->new($_) } @$_ ] };
141  
142 declare 'MapStringSoarAlertMetadata',
143 as HashRef[SoarAlertMetadata()];
144  
145 1;
146  
147 __END__