File Coverage

blib/lib/SBOM/CycloneDX/Enum/ImpactAnalysisJustification.pm
Criterion Covered Total %
statement 20 20 100.0
branch n/a
condition n/a
subroutine 7 7 100.0
pod 0 1 0.0
total 27 28 96.4


line stmt bran cond sub pod time code
1             package SBOM::CycloneDX::Enum::ImpactAnalysisJustification;
2              
3 16     16   296 use 5.010001;
  16         64  
4 16     16   93 use strict;
  16         32  
  16         467  
5 16     16   112 use warnings;
  16         30  
  16         902  
6 16     16   117 use utf8;
  16         30  
  16         105  
7              
8 16     16   704 use Exporter 'import';
  16         35  
  16         3097  
9             our (@EXPORT_OK, %EXPORT_TAGS, %ENUM);
10              
11             BEGIN {
12              
13 16     16   186 %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         137 require constant;
26 16         1960 constant->import(\%ENUM);
27              
28 16         159 @EXPORT_OK = sort keys %ENUM;
29 16         1722 %EXPORT_TAGS = (all => \@EXPORT_OK);
30              
31             }
32              
33 2     2 0 18 sub values { sort values %ENUM }
34              
35             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 is ENUM package used by L.
55              
56             The rationale of why the impact analysis state was asserted
57              
58             =head1 CONSTANTS
59              
60             =over
61              
62             =item * C, The code has been removed or tree-shaked.
63              
64             =item * C, The vulnerable code is not invoked at
65             runtime.
66              
67             =item * C, Exploitability requires a configurable
68             option to be set/unset.
69              
70             =item * C, Exploitability requires a dependency that
71             is not present.
72              
73             =item * C, Exploitability requires a certain
74             environment which is not present.
75              
76             =item * C, Exploitability requires a compiler flag
77             to be set/unset.
78              
79             =item * C, Exploits are prevented at runtime.
80              
81             =item * C, Attacks are blocked at physical,
82             logical, or network perimeter.
83              
84             =item * C, 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.
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
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
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