| Total Complexity | 1 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Coverage | 90% |
| Changes | 0 | ||
| 1 | # Copyright 2022, Red Hat, Inc. |
||
| 2 | # SPDX-License-Identifier: LGPL-2.1-or-later |
||
| 3 | |||
| 4 | 1 | from typing import Dict |
|
| 5 | |||
| 6 | 1 | from openscap_report.dataclasses import asdict, dataclass, field |
|
| 7 | |||
| 8 | |||
| 9 | 1 | @dataclass |
|
| 10 | 1 | class OvalState: |
|
| 11 | 1 | state_id: str |
|
| 12 | 1 | comment: str = "" |
|
| 13 | 1 | state_type: str = "" |
|
| 14 | 1 | state_data: Dict[str, str] = field(default_factory=dict) |
|
| 15 | |||
| 16 | 1 | def as_dict(self): |
|
| 17 | return asdict(self) |
||
| 18 |