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

filter: Statementstmt 0.0% 0 / 70 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 75 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::Target::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 'TargetType',
11 as (Int | Str);
12  
13 declare 'TestSize',
14 as (Int | Str);
15  
16 declare 'Target',
17 as InstanceOf['Google::Devtools::Resultstore::V2::Target::Target'];
18  
19 coerce 'Target',
20 from HashRef, via { 'Google::Devtools::Resultstore::V2::Target::Target'->new($_) };
21  
22 declare 'RepeatedTarget',
23 as ArrayRef[Target()];
24  
25 coerce 'RepeatedTarget',
26 from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Resultstore::V2::Target::Target'->new($_) } @$_ ] };
27  
28 declare 'MapStringTarget',
29 as HashRef[Target()];
30  
31 declare 'Id',
32 as InstanceOf['Google::Devtools::Resultstore::V2::Target::Target::Id'];
33  
34 coerce 'Id',
35 from HashRef, via { 'Google::Devtools::Resultstore::V2::Target::Target::Id'->new($_) };
36  
37 declare 'RepeatedId',
38 as ArrayRef[Id()];
39  
40 coerce 'RepeatedId',
41 from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Resultstore::V2::Target::Target::Id'->new($_) } @$_ ] };
42  
43 declare 'MapStringId',
44 as HashRef[Id()];
45  
46 declare 'TargetAttributes',
47 as InstanceOf['Google::Devtools::Resultstore::V2::Target::TargetAttributes'];
48  
49 coerce 'TargetAttributes',
50 from HashRef, via { 'Google::Devtools::Resultstore::V2::Target::TargetAttributes'->new($_) };
51  
52 declare 'RepeatedTargetAttributes',
53 as ArrayRef[TargetAttributes()];
54  
55 coerce 'RepeatedTargetAttributes',
56 from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Resultstore::V2::Target::TargetAttributes'->new($_) } @$_ ] };
57  
58 declare 'MapStringTargetAttributes',
59 as HashRef[TargetAttributes()];
60  
61 declare 'TestAttributes',
62 as InstanceOf['Google::Devtools::Resultstore::V2::Target::TestAttributes'];
63  
64 coerce 'TestAttributes',
65 from HashRef, via { 'Google::Devtools::Resultstore::V2::Target::TestAttributes'->new($_) };
66  
67 declare 'RepeatedTestAttributes',
68 as ArrayRef[TestAttributes()];
69  
70 coerce 'RepeatedTestAttributes',
71 from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Resultstore::V2::Target::TestAttributes'->new($_) } @$_ ] };
72  
73 declare 'MapStringTestAttributes',
74 as HashRef[TestAttributes()];
75  
76 1;
77  
78 __END__