V1/Finding/Types.pm untested

filter: Statementstmt 0.0% 0 / 44 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 49 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::Agentregistry::V1::Finding::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 'Severity',
11 as (Int | Str);
12  
13 declare 'Finding',
14 as InstanceOf['Google::Cloud::Agentregistry::V1::Finding::Finding'];
15  
16 coerce 'Finding',
17 from HashRef, via { 'Google::Cloud::Agentregistry::V1::Finding::Finding'->new($_) };
18  
19 declare 'RepeatedFinding',
20 as ArrayRef[Finding()];
21  
22 coerce 'RepeatedFinding',
23 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Agentregistry::V1::Finding::Finding'->new($_) } @$_ ] };
24  
25 declare 'MapStringFinding',
26 as HashRef[Finding()];
27  
28 declare 'FindingClass',
29 as (Int | Str);
30  
31 declare 'File',
32 as InstanceOf['Google::Cloud::Agentregistry::V1::Finding::Finding::File'];
33  
34 coerce 'File',
35 from HashRef, via { 'Google::Cloud::Agentregistry::V1::Finding::Finding::File'->new($_) };
36  
37 declare 'RepeatedFile',
38 as ArrayRef[File()];
39  
40 coerce 'RepeatedFile',
41 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Agentregistry::V1::Finding::Finding::File'->new($_) } @$_ ] };
42  
43 declare 'MapStringFile',
44 as HashRef[File()];
45  
46 1;
47  
48 __END__