Devtools/Resultstore/V2/Common/Types.pm untested

filter: Statementstmt 0.0% 0 / 84 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 89 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Google::Devtools::Resultstore::V2::Common::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 'Language',
11 as (Int | Str);
12  
13 declare 'Status',
14 as (Int | Str);
15  
16 declare 'UploadStatus',
17 as (Int | Str);
18  
19 declare 'StatusAttributes',
20 as InstanceOf['Google::Devtools::Resultstore::V2::Common::StatusAttributes'];
21  
22 coerce 'StatusAttributes',
23 from HashRef, via { 'Google::Devtools::Resultstore::V2::Common::StatusAttributes'->new($_) };
24  
25 declare 'RepeatedStatusAttributes',
26 as ArrayRef[StatusAttributes()];
27  
28 coerce 'RepeatedStatusAttributes',
29 from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Resultstore::V2::Common::StatusAttributes'->new($_) } @$_ ] };
30  
31 declare 'MapStringStatusAttributes',
32 as HashRef[StatusAttributes()];
33  
34 declare 'Property',
35 as InstanceOf['Google::Devtools::Resultstore::V2::Common::Property'];
36  
37 coerce 'Property',
38 from HashRef, via { 'Google::Devtools::Resultstore::V2::Common::Property'->new($_) };
39  
40 declare 'RepeatedProperty',
41 as ArrayRef[Property()];
42  
43 coerce 'RepeatedProperty',
44 from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Resultstore::V2::Common::Property'->new($_) } @$_ ] };
45  
46 declare 'MapStringProperty',
47 as HashRef[Property()];
48  
49 declare 'Timing',
50 as InstanceOf['Google::Devtools::Resultstore::V2::Common::Timing'];
51  
52 coerce 'Timing',
53 from HashRef, via { 'Google::Devtools::Resultstore::V2::Common::Timing'->new($_) };
54  
55 declare 'RepeatedTiming',
56 as ArrayRef[Timing()];
57  
58 coerce 'RepeatedTiming',
59 from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Resultstore::V2::Common::Timing'->new($_) } @$_ ] };
60  
61 declare 'MapStringTiming',
62 as HashRef[Timing()];
63  
64 declare 'Dependency',
65 as InstanceOf['Google::Devtools::Resultstore::V2::Common::Dependency'];
66  
67 coerce 'Dependency',
68 from HashRef, via { 'Google::Devtools::Resultstore::V2::Common::Dependency'->new($_) };
69  
70 declare 'RepeatedDependency',
71 as ArrayRef[Dependency()];
72  
73 coerce 'RepeatedDependency',
74 from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Resultstore::V2::Common::Dependency'->new($_) } @$_ ] };
75  
76 declare 'MapStringDependency',
77 as HashRef[Dependency()];
78  
79 declare 'Id',
80 as InstanceOf['Google::Devtools::Resultstore::V2::Common::Dependency::Id'];
81  
82 coerce 'Id',
83 from HashRef, via { 'Google::Devtools::Resultstore::V2::Common::Dependency::Id'->new($_) };
84  
85 declare 'RepeatedId',
86 as ArrayRef[Id()];
87  
88 coerce 'RepeatedId',
89 from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Resultstore::V2::Common::Dependency::Id'->new($_) } @$_ ] };
90  
91 declare 'MapStringId',
92 as HashRef[Id()];
93  
94 1;
95  
96 __END__