openscap_report.scap_results_parser.data_structures.oval_reference   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 85.71%

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 14
ccs 6
cts 7
cp 0.8571
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A OvalReference.as_dict() 0 2 1
1
# Copyright 2022, Red Hat, Inc.
2
# SPDX-License-Identifier: LGPL-2.1-or-later
3
4 1
from openscap_report.dataclasses import asdict, dataclass
5
6
7 1
@dataclass
8 1
class OvalReference:
9 1
    source: str
10 1
    ref_id: str
11
12 1
    def as_dict(self):
13
        return asdict(self)
14