CSAF/Type/AggregateSeverity.pm

filter: Statementstmt 72.0% 18 / 25 Branchbran 0.0% 0 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 100% 1 / 1 totaltotal 63.1% 24 / 38 CC 4 SCAR 22.5
CC
4
Cov
58%
TO_CSAF
20.0
BEGIN
1.0
BEGIN
1.0
CRAP 9.4
« CSAF/Util/CVSS.pm ↑ Summary CSAF/Type/List.pm »
1 package CSAF::Type::AggregateSeverity;
2  
3 1 ▶use 5.010001;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 extends 'CSAF::Type::Base';
10  
11 1 has text => (is => 'rw');
12 1 has namespace => (is => 'rw');
13  
14 0 ▶sub TO_CSAF {
Subroutine TO_CSAF: not called CC=4 SCAR=30.0
Pod documented
15  
16 0 my $self = shift;
17  
18 0 my $output = {};
19  
20 0 ▶ $output->{text} = $self->text if ($self->text);
Branch: 1 branch
BranchTrueFalseTotal
if $self->text 0 0 0
21 0 ▶ $output->{namespace} = $self->namespace if ($self->namespace);
Branch: 1 branch
BranchTrueFalseTotal
if $self->namespace 0 0 0
22  
23 0 ▶ return if (!keys %{$output});
Branch: 1 branch
BranchTrueFalseTotal
unless keys %{$output;} 0 0 0
24  
25 0 return $output;
26  
27 }
28  
29 1 1;
30  
31 __END__
« CSAF/Util/CVSS.pm ↑ Summary CSAF/Type/List.pm »