File Coverage

blib/lib/SBOM/CycloneDX/Enum/CryptoImplementationPlatform.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::CryptoImplementationPlatform;
2              
3 16     16   289 use 5.010001;
  16         60  
4 16     16   113 use strict;
  16         31  
  16         423  
5 16     16   94 use warnings;
  16         31  
  16         1017  
6 16     16   143 use utf8;
  16         38  
  16         139  
7              
8 16     16   761 use Exporter 'import';
  16         33  
  16         3613  
9             our (@EXPORT_OK, %EXPORT_TAGS, %ENUM);
10              
11             BEGIN {
12              
13 16     16   216 %ENUM = (
14             GENERIC => 'generic',
15             X86_32 => 'x86_32',
16             X86_64 => 'x86_64',
17             ARMV7_A => 'armv7-a',
18             ARMV7_M => 'armv7-m',
19             ARMV8_A => 'armv8-a',
20             ARMV8_M => 'armv8-m',
21             ARMV9_A => 'armv9-a',
22             ARMV9_M => 'armv9-m',
23             S390X => 's390x',
24             PPC64 => 'ppc64',
25             PPC64LE => 'ppc64le',
26             OTHER => 'other',
27             UNKNOWN => 'unknown',
28             );
29              
30 16         128 require constant;
31 16         2633 constant->import(\%ENUM);
32              
33 16         252 @EXPORT_OK = sort keys %ENUM;
34 16         1646 %EXPORT_TAGS = (all => \@EXPORT_OK);
35              
36             }
37              
38 2     2 0 29 sub values { sort values %ENUM }
39              
40              
41             1;
42              
43             =encoding utf-8
44              
45             =head1 NAME
46              
47             SBOM::CycloneDX::Enum::CryptoImplementationPlatform - Implementation platform
48              
49             =head1 SYNOPSIS
50              
51             use SBOM::CycloneDX::Enum qw(CRYPTO_IMPLEMENTATION_PLATFORM);
52              
53             say CRYPTO_IMPLEMENTATION_PLATFORM->X86_64;
54              
55              
56             use SBOM::CycloneDX::Enum::CryptoImplementationPlatform;
57              
58             say SBOM::CycloneDX::Enum::CryptoImplementationPlatform->GENERIC;
59              
60              
61             use SBOM::CycloneDX::Enum::CryptoImplementationPlatform qw(:all);
62              
63             say ARMV7_A;
64              
65              
66             =head1 DESCRIPTION
67              
68             L is ENUM package used by L.
69              
70             The target platform for which the algorithm is implemented. The
71             implementation can be 'generic', running on any platform or for a specific
72             platform.
73              
74              
75             =head1 CONSTANTS
76              
77             =over
78              
79             =item * C
80              
81             =item * C
82              
83             =item * C
84              
85             =item * C
86              
87             =item * C
88              
89             =item * C
90              
91             =item * C
92              
93             =item * C
94              
95             =item * C
96              
97             =item * C
98              
99             =item * C
100              
101             =item * C
102              
103             =item * C
104              
105             =item * C
106              
107             =back
108              
109             =head1 SUPPORT
110              
111             =head2 Bugs / Feature Requests
112              
113             Please report any bugs or feature requests through the issue tracker
114             at L.
115             You will be notified automatically of any progress on your issue.
116              
117             =head2 Source Code
118              
119             This is open source software. The code repository is available for
120             public review and contribution under the terms of the license.
121              
122             L
123              
124             git clone https://github.com/giterlizzi/perl-SBOM-CycloneDX.git
125              
126              
127             =head1 AUTHOR
128              
129             =over 4
130              
131             =item * Giuseppe Di Terlizzi
132              
133             =back
134              
135              
136             =head1 LICENSE AND COPYRIGHT
137              
138             This software is copyright (c) 2025-2026 by Giuseppe Di Terlizzi.
139              
140             This is free software; you can redistribute it and/or modify it under
141             the same terms as the Perl 5 programming language system itself.
142              
143             =cut