CycloneDX/Enum/ImpactAnalysisJustification.pm

filter: Statementstmt 100% 22 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 0.0% 0 / 1 totaltotal 96.6% 29 / 30 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« CycloneDX/Enum/HashAlgorithm.pm ↑ Summary CycloneDX/Enum/ImpactAnalysisState.pm »
1 package SBOM::CycloneDX::Enum::ImpactAnalysisJustification;
2  
3 16 ▶use 5.010001;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 16 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 16 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 16 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 16 ▶use Exporter 'import';
Subroutine BEGIN: called CC=1 SCAR=0.0
9 16 our (@EXPORT_OK, %EXPORT_TAGS, %ENUM);
10  
11 16 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 16 %ENUM = (
14 CODE_NOT_PRESENT => 'code_not_present',
15 CODE_NOT_REACHABLE => 'code_not_reachable',
16 REQUIRES_CONFIGURATION => 'requires_configuration',
17 REQUIRES_DEPENDENCY => 'requires_dependency',
18 REQUIRES_ENVIRONMENT => 'requires_environment',
19 PROTECTED_BY_COMPILER => 'protected_by_compiler',
20 PROTECTED_AT_RUNTIME => 'protected_at_runtime',
21 PROTECTED_AT_PERIMETER => 'protected_at_perimeter',
22 PROTECTED_BY_MITIGATING_CONTROL => 'protected_by_mitigating_control',
23 );
24  
25 16 require constant;
26 16 constant->import(\%ENUM);
27  
28 16 @EXPORT_OK = sort keys %ENUM;
29 16 %EXPORT_TAGS = (all => \@EXPORT_OK);
30  
31 }
32  
33 2 ▶sub values { sort values %ENUM }
Subroutine values: called CC=1 SCAR=0.0
Pod undocumented
34  
35 16 1;
36  
37 =encoding utf-8
38  
39 =head1 NAME
40  
41 SBOM::CycloneDX::Enum::ImpactAnalysisJustification - Impact Analysis Justification
42  
43 =head1 SYNOPSIS
44  
45 use SBOM::CycloneDX::Enum qw(IMPACT_ANALYSIS_JUSTIFICATION);
46 say IMPACT_ANALYSIS_STATE->REQUIRES_DEPENDENCY;
47  
48 use SBOM::CycloneDX::Enum::ImpactAnalysisJustification qw(:all);
49 say PROTECTED_AT_RUNTIME;
50  
51  
52 =head1 DESCRIPTION
53  
54 L<SBOM::CycloneDX::Enum::ImpactAnalysisJustification> is ENUM package used by L<SBOM::CycloneDX::Vulnerability::Analysis>.
55  
56 The rationale of why the impact analysis state was asserted
57  
58 =head1 CONSTANTS
59  
60 =over
61  
62 =item * C<CODE_NOT_PRESENT>, The code has been removed or tree-shaked.
63  
64 =item * C<CODE_NOT_REACHABLE>, The vulnerable code is not invoked at
65 runtime.
66  
67 =item * C<REQUIRES_CONFIGURATION>, Exploitability requires a configurable
68 option to be set/unset.
69  
70 =item * C<REQUIRES_DEPENDENCY>, Exploitability requires a dependency that
71 is not present.
72  
73 =item * C<REQUIRES_ENVIRONMENT>, Exploitability requires a certain
74 environment which is not present.
75  
76 =item * C<PROTECTED_BY_COMPILER>, Exploitability requires a compiler flag
77 to be set/unset.
78  
79 =item * C<PROTECTED_AT_RUNTIME>, Exploits are prevented at runtime.
80  
81 =item * C<PROTECTED_AT_PERIMETER>, Attacks are blocked at physical,
82 logical, or network perimeter.
83  
84 =item * C<PROTECTED_BY_MITIGATING_CONTROL>, Preventative measures have been
85 implemented that reduce the likelihood and/or impact of the vulnerability.
86  
87 =back
88  
89 =head1 SUPPORT
90  
91 =head2 Bugs / Feature Requests
92  
93 Please report any bugs or feature requests through the issue tracker
94 at L<https://github.com/giterlizzi/perl-SBOM-CycloneDX/issues>.
95 You will be notified automatically of any progress on your issue.
96  
97 =head2 Source Code
98  
99 This is open source software. The code repository is available for
100 public review and contribution under the terms of the license.
101  
102 L<https://github.com/giterlizzi/perl-SBOM-CycloneDX>
103  
104 git clone https://github.com/giterlizzi/perl-SBOM-CycloneDX.git
105  
106  
107 =head1 AUTHOR
108  
109 =over 4
110  
111 =item * Giuseppe Di Terlizzi <gdt@cpan.org>
112  
113 =back
114  
115  
116 =head1 LICENSE AND COPYRIGHT
117  
118 This software is copyright (c) 2025-2026 by Giuseppe Di Terlizzi.
119  
120 This is free software; you can redistribute it and/or modify it under
121 the same terms as the Perl 5 programming language system itself.
122  
123 =cut
« CycloneDX/Enum/HashAlgorithm.pm ↑ Summary CycloneDX/Enum/ImpactAnalysisState.pm »