Role/CycloneDXSource.pm

filter: Statementstmt 60.0% 3 / 5 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 71.4% 5 / 7 CC 1 SCAR 1.4
CC
1
Cov
60%
BEGIN
1.3
BEGIN
1.0
CRAP 1.1
« Plugin/CycloneDX.pm ↑ Summary
1 package Dist::Zilla::Role::CycloneDXSource;
2 $Dist::Zilla::Role::CycloneDXSource::VERSION = '0.001';
3 1 ▶use 5.020;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 0 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=2.6
6 with 'Dist::Zilla::Role::Plugin';
7  
8 use experimental 'signatures';
9  
10 sub add_to_bom($self, $cyclone) {
11 return;
12 }
13  
14 sub cyclonedx_dist($self) {
15 return ref($self) =~ s/::/-/gr;
16 }
17  
18 sub cyclonedx_resources($self) {
19 return {};
20 }
21  
22 1;
23  
24 # ABSTRACT: A role for plugins that adds information to the CycloneDX SBOM
25  
26 __END__
« Plugin/CycloneDX.pm ↑ Summary