V1/Graph/Types.pm untested

filter: Statementstmt 0.0% 0 / 68 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 73 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::Apptopology::V1::Graph::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 'Graph',
11 as InstanceOf['Google::Cloud::Apptopology::V1::Graph::Graph'];
12  
13 coerce 'Graph',
14 from HashRef, via { 'Google::Cloud::Apptopology::V1::Graph::Graph'->new($_) };
15  
16 declare 'RepeatedGraph',
17 as ArrayRef[Graph()];
18  
19 coerce 'RepeatedGraph',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Apptopology::V1::Graph::Graph'->new($_) } @$_ ] };
21  
22 declare 'MapStringGraph',
23 as HashRef[Graph()];
24  
25 declare 'EntityContext',
26 as InstanceOf['Google::Cloud::Apptopology::V1::Graph::EntityContext'];
27  
28 coerce 'EntityContext',
29 from HashRef, via { 'Google::Cloud::Apptopology::V1::Graph::EntityContext'->new($_) };
30  
31 declare 'RepeatedEntityContext',
32 as ArrayRef[EntityContext()];
33  
34 coerce 'RepeatedEntityContext',
35 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Apptopology::V1::Graph::EntityContext'->new($_) } @$_ ] };
36  
37 declare 'MapStringEntityContext',
38 as HashRef[EntityContext()];
39  
40 declare 'Node',
41 as InstanceOf['Google::Cloud::Apptopology::V1::Graph::Node'];
42  
43 coerce 'Node',
44 from HashRef, via { 'Google::Cloud::Apptopology::V1::Graph::Node'->new($_) };
45  
46 declare 'RepeatedNode',
47 as ArrayRef[Node()];
48  
49 coerce 'RepeatedNode',
50 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Apptopology::V1::Graph::Node'->new($_) } @$_ ] };
51  
52 declare 'MapStringNode',
53 as HashRef[Node()];
54  
55 declare 'Edge',
56 as InstanceOf['Google::Cloud::Apptopology::V1::Graph::Edge'];
57  
58 coerce 'Edge',
59 from HashRef, via { 'Google::Cloud::Apptopology::V1::Graph::Edge'->new($_) };
60  
61 declare 'RepeatedEdge',
62 as ArrayRef[Edge()];
63  
64 coerce 'RepeatedEdge',
65 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Apptopology::V1::Graph::Edge'->new($_) } @$_ ] };
66  
67 declare 'MapStringEdge',
68 as HashRef[Edge()];
69  
70 1;
71  
72 __END__