V1/Vex/Types.pm untested

filter: Statementstmt 0.0% 0 / 97 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 102 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Grafeas::V1::Vex::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 'VulnerabilityAssessmentNote',
11 as InstanceOf['Grafeas::V1::Vex::VulnerabilityAssessmentNote'];
12  
13 coerce 'VulnerabilityAssessmentNote',
14 from HashRef, via { 'Grafeas::V1::Vex::VulnerabilityAssessmentNote'->new($_) };
15  
16 declare 'RepeatedVulnerabilityAssessmentNote',
17 as ArrayRef[VulnerabilityAssessmentNote()];
18  
19 coerce 'RepeatedVulnerabilityAssessmentNote',
20 from ArrayRef[HashRef], via { [ map { 'Grafeas::V1::Vex::VulnerabilityAssessmentNote'->new($_) } @$_ ] };
21  
22 declare 'MapStringVulnerabilityAssessmentNote',
23 as HashRef[VulnerabilityAssessmentNote()];
24  
25 declare 'Publisher',
26 as InstanceOf['Grafeas::V1::Vex::VulnerabilityAssessmentNote::Publisher'];
27  
28 coerce 'Publisher',
29 from HashRef, via { 'Grafeas::V1::Vex::VulnerabilityAssessmentNote::Publisher'->new($_) };
30  
31 declare 'RepeatedPublisher',
32 as ArrayRef[Publisher()];
33  
34 coerce 'RepeatedPublisher',
35 from ArrayRef[HashRef], via { [ map { 'Grafeas::V1::Vex::VulnerabilityAssessmentNote::Publisher'->new($_) } @$_ ] };
36  
37 declare 'MapStringPublisher',
38 as HashRef[Publisher()];
39  
40 declare 'Product',
41 as InstanceOf['Grafeas::V1::Vex::VulnerabilityAssessmentNote::Product'];
42  
43 coerce 'Product',
44 from HashRef, via { 'Grafeas::V1::Vex::VulnerabilityAssessmentNote::Product'->new($_) };
45  
46 declare 'RepeatedProduct',
47 as ArrayRef[Product()];
48  
49 coerce 'RepeatedProduct',
50 from ArrayRef[HashRef], via { [ map { 'Grafeas::V1::Vex::VulnerabilityAssessmentNote::Product'->new($_) } @$_ ] };
51  
52 declare 'MapStringProduct',
53 as HashRef[Product()];
54  
55 declare 'Assessment',
56 as InstanceOf['Grafeas::V1::Vex::VulnerabilityAssessmentNote::Assessment'];
57  
58 coerce 'Assessment',
59 from HashRef, via { 'Grafeas::V1::Vex::VulnerabilityAssessmentNote::Assessment'->new($_) };
60  
61 declare 'RepeatedAssessment',
62 as ArrayRef[Assessment()];
63  
64 coerce 'RepeatedAssessment',
65 from ArrayRef[HashRef], via { [ map { 'Grafeas::V1::Vex::VulnerabilityAssessmentNote::Assessment'->new($_) } @$_ ] };
66  
67 declare 'MapStringAssessment',
68 as HashRef[Assessment()];
69  
70 declare 'State',
71 as (Int | Str);
72  
73 declare 'Justification',
74 as InstanceOf['Grafeas::V1::Vex::VulnerabilityAssessmentNote::Assessment::Justification'];
75  
76 coerce 'Justification',
77 from HashRef, via { 'Grafeas::V1::Vex::VulnerabilityAssessmentNote::Assessment::Justification'->new($_) };
78  
79 declare 'RepeatedJustification',
80 as ArrayRef[Justification()];
81  
82 coerce 'RepeatedJustification',
83 from ArrayRef[HashRef], via { [ map { 'Grafeas::V1::Vex::VulnerabilityAssessmentNote::Assessment::Justification'->new($_) } @$_ ] };
84  
85 declare 'MapStringJustification',
86 as HashRef[Justification()];
87  
88 declare 'JustificationType',
89 as (Int | Str);
90  
91 declare 'Remediation',
92 as InstanceOf['Grafeas::V1::Vex::VulnerabilityAssessmentNote::Assessment::Remediation'];
93  
94 coerce 'Remediation',
95 from HashRef, via { 'Grafeas::V1::Vex::VulnerabilityAssessmentNote::Assessment::Remediation'->new($_) };
96  
97 declare 'RepeatedRemediation',
98 as ArrayRef[Remediation()];
99  
100 coerce 'RepeatedRemediation',
101 from ArrayRef[HashRef], via { [ map { 'Grafeas::V1::Vex::VulnerabilityAssessmentNote::Assessment::Remediation'->new($_) } @$_ ] };
102  
103 declare 'MapStringRemediation',
104 as HashRef[Remediation()];
105  
106 declare 'RemediationType',
107 as (Int | Str);
108  
109 1;
110  
111 __END__