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

filter: Statementstmt 0.0% 0 / 82 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 87 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::TestSuite::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 'TestSuite',
11 as InstanceOf['Google::Devtools::Resultstore::V2::TestSuite::TestSuite'];
12  
13 coerce 'TestSuite',
14 from HashRef, via { 'Google::Devtools::Resultstore::V2::TestSuite::TestSuite'->new($_) };
15  
16 declare 'RepeatedTestSuite',
17 as ArrayRef[TestSuite()];
18  
19 coerce 'RepeatedTestSuite',
20 from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Resultstore::V2::TestSuite::TestSuite'->new($_) } @$_ ] };
21  
22 declare 'MapStringTestSuite',
23 as HashRef[TestSuite()];
24  
25 declare 'Test',
26 as InstanceOf['Google::Devtools::Resultstore::V2::TestSuite::Test'];
27  
28 coerce 'Test',
29 from HashRef, via { 'Google::Devtools::Resultstore::V2::TestSuite::Test'->new($_) };
30  
31 declare 'RepeatedTest',
32 as ArrayRef[Test()];
33  
34 coerce 'RepeatedTest',
35 from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Resultstore::V2::TestSuite::Test'->new($_) } @$_ ] };
36  
37 declare 'MapStringTest',
38 as HashRef[Test()];
39  
40 declare 'TestCase',
41 as InstanceOf['Google::Devtools::Resultstore::V2::TestSuite::TestCase'];
42  
43 coerce 'TestCase',
44 from HashRef, via { 'Google::Devtools::Resultstore::V2::TestSuite::TestCase'->new($_) };
45  
46 declare 'RepeatedTestCase',
47 as ArrayRef[TestCase()];
48  
49 coerce 'RepeatedTestCase',
50 from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Resultstore::V2::TestSuite::TestCase'->new($_) } @$_ ] };
51  
52 declare 'MapStringTestCase',
53 as HashRef[TestCase()];
54  
55 declare 'Result',
56 as (Int | Str);
57  
58 declare 'TestFailure',
59 as InstanceOf['Google::Devtools::Resultstore::V2::TestSuite::TestFailure'];
60  
61 coerce 'TestFailure',
62 from HashRef, via { 'Google::Devtools::Resultstore::V2::TestSuite::TestFailure'->new($_) };
63  
64 declare 'RepeatedTestFailure',
65 as ArrayRef[TestFailure()];
66  
67 coerce 'RepeatedTestFailure',
68 from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Resultstore::V2::TestSuite::TestFailure'->new($_) } @$_ ] };
69  
70 declare 'MapStringTestFailure',
71 as HashRef[TestFailure()];
72  
73 declare 'TestError',
74 as InstanceOf['Google::Devtools::Resultstore::V2::TestSuite::TestError'];
75  
76 coerce 'TestError',
77 from HashRef, via { 'Google::Devtools::Resultstore::V2::TestSuite::TestError'->new($_) };
78  
79 declare 'RepeatedTestError',
80 as ArrayRef[TestError()];
81  
82 coerce 'RepeatedTestError',
83 from ArrayRef[HashRef], via { [ map { 'Google::Devtools::Resultstore::V2::TestSuite::TestError'->new($_) } @$_ ] };
84  
85 declare 'MapStringTestError',
86 as HashRef[TestError()];
87  
88 1;
89  
90 __END__