CSAF/Type/RestartRequired.pm

filter: Statementstmt 81.8% 18 / 22 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 100% 1 / 1 totaltotal 77.4% 24 / 31 CC 2 SCAR 8.9
CC
2
Cov
75%
TO_CSAF
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.4
« CSAF/Type/Reference.pm ↑ Summary CSAF/Type/ProductGroup.pm »
1 package CSAF::Type::RestartRequired;
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  
12 1 has category => (is => 'rw', required => 1);
13 1 has details => (is => 'rw');
14  
15 0 ▶sub TO_CSAF {
Subroutine TO_CSAF: not called CC=2 SCAR=17.9
Pod documented
16  
17 0 my $self = shift;
18  
19 0 my $output = {category => $self->category};
20  
21 0 ▶ $output->{details} = $self->details if ($self->details);
Branch: 1 branch
BranchTrueFalseTotal
if $self->details 0 0 0
22  
23 0 return $output;
24  
25 }
26  
27 1 1;
28  
29 __END__
« CSAF/Type/Reference.pm ↑ Summary CSAF/Type/ProductGroup.pm »