CycloneDX/Enum/AggregateType.pm

filter: Statementstmt 95.4% 21 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod 0.0% 0 / 1 totaltotal 90.0% 27 / 30 CC 1 SCAR 1.3
CC
1
Cov
95%
values
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« CycloneDX/Enum.pm ↑ Summary CycloneDX/Vulnerability/Reference.pm »
1 package SBOM::CycloneDX::Enum::AggregateType;
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 COMPLETE => "complete",
15 INCOMPLETE => "incomplete",
16 INCOMPLETE_FIRST_PARTY_ONLY => "incomplete_first_party_only",
17 INCOMPLETE_FIRST_PARTY_PROPRIETARY_ONLY => "incomplete_first_party_proprietary_only",
18 INCOMPLETE_FIRST_PARTY_OPENSOURCE_ONLY => "incomplete_first_party_opensource_only",
19 INCOMPLETE_THIRD_PARTY_ONLY => "incomplete_third_party_only",
20 INCOMPLETE_THIRD_PARTY_PROPRIETARY_ONLY => "incomplete_third_party_proprietary_only",
21 INCOMPLETE_THIRD_PARTY_OPENSOURCE_ONLY => "incomplete_third_party_opensource_only",
22 UNKNOWN => "unknown",
23 NOT_SPECIFIED => "not_specified"
24 );
25  
26 16 require constant;
27 16 constant->import(\%ENUM);
28  
29 16 @EXPORT_OK = sort keys %ENUM;
30 16 %EXPORT_TAGS = (all => \@EXPORT_OK);
31  
32 }
33  
34 0 ▶sub values { sort values %ENUM }
Subroutine values: not called CC=1 SCAR=6.9
Pod undocumented
35  
36 16 1;
37  
38 =encoding utf-8
39  
40 =head1 NAME
41  
42 SBOM::CycloneDX::Enum::AggregateType - Specifies an aggregate type that describes
43 how complete a relationship is
44  
45 =head1 SYNOPSIS
46  
47 use SBOM::CycloneDX::Enum qw(AGGREGATE_TYPE);
48  
49 say AGGREGATE_TYPE->NOT_SPECIFIED;
50  
51  
52 use SBOM::CycloneDX::Enum::AggregateType;
53  
54 say SBOM::CycloneDX::Enum::AggregateType->COMPLETE;
55  
56  
57 use SBOM::CycloneDX::Enum::AggregateType qw(:all);
58  
59 say INCOMPLETE;
60  
61  
62 =head1 DESCRIPTION
63  
64 L<SBOM::CycloneDX::Enum::AggregateType> is ENUM package used by L<SBOM::CycloneDX::Composition>.
65  
66  
67 =head1 CONSTANTS
68  
69 =over
70  
71 =item * C<COMPLETE>, The relationship is complete. No further relationships
72 including constituent components, services, or dependencies are known to
73 exist.
74  
75 =item * C<INCOMPLETE>, The relationship is incomplete. Additional
76 relationships exist and may include constituent components, services, or
77 dependencies.
78  
79 =item * C<INCOMPLETE_FIRST_PARTY_ONLY>, The relationship is incomplete.
80 Only relationships for first-party components, services, or their
81 dependencies are represented.
82  
83 =item * C<INCOMPLETE_FIRST_PARTY_PROPRIETARY_ONLY>, The relationship is
84 incomplete. Only relationships for first-party components, services, or
85 their dependencies are represented, limited specifically to those that are
86 proprietary.
87  
88 =item * C<INCOMPLETE_FIRST_PARTY_OPENSOURCE_ONLY>, The relationship is
89 incomplete. Only relationships for first-party components, services, or
90 their dependencies are represented, limited specifically to those that are
91 opensource.
92  
93 =item * C<INCOMPLETE_THIRD_PARTY_ONLY>, The relationship is incomplete.
94 Only relationships for third-party components, services, or their
95 dependencies are represented.
96  
97 =item * C<INCOMPLETE_THIRD_PARTY_PROPRIETARY_ONLY>, The relationship is
98 incomplete. Only relationships for third-party components, services, or
99 their dependencies are represented, limited specifically to those that are
100 proprietary.
101  
102 =item * C<INCOMPLETE_THIRD_PARTY_OPENSOURCE_ONLY>, The relationship is
103 incomplete. Only relationships for third-party components, services, or
104 their dependencies are represented, limited specifically to those that are
105 opensource.
106  
107 =item * C<UNKNOWN>, The relationship may be complete or incomplete. This
108 usually signifies a 'best-effort' to obtain constituent components,
109 services, or dependencies but the completeness is inconclusive.
110  
111 =item * C<NOT_SPECIFIED>, The relationship completeness is not specified.
112  
113 =back
114  
115 =head1 SUPPORT
116  
117 =head2 Bugs / Feature Requests
118  
119 Please report any bugs or feature requests through the issue tracker
120 at L<https://github.com/giterlizzi/perl-SBOM-CycloneDX/issues>.
121 You will be notified automatically of any progress on your issue.
122  
123 =head2 Source Code
124  
125 This is open source software. The code repository is available for
126 public review and contribution under the terms of the license.
127  
128 L<https://github.com/giterlizzi/perl-SBOM-CycloneDX>
129  
130 git clone https://github.com/giterlizzi/perl-SBOM-CycloneDX.git
131  
132  
133 =head1 AUTHOR
134  
135 =over 4
136  
137 =item * Giuseppe Di Terlizzi <gdt@cpan.org>
138  
139 =back
140  
141  
142 =head1 LICENSE AND COPYRIGHT
143  
144 This software is copyright (c) 2025-2026 by Giuseppe Di Terlizzi.
145  
146 This is free software; you can redistribute it and/or modify it under
147 the same terms as the Perl 5 programming language system itself.
148  
149 =cut
« CycloneDX/Enum.pm ↑ Summary CycloneDX/Vulnerability/Reference.pm »