| Total Complexity | 1 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Coverage | 87.5% |
| Changes | 0 | ||
| 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 | 1 | IDENTIFIER_JSON_KEYS = [ |
|
| 7 | "system", |
||
| 8 | "text", |
||
| 9 | ] |
||
| 10 | |||
| 11 | |||
| 12 | 1 | @dataclass |
|
| 13 | 1 | class Identifier: |
|
| 14 | 1 | system: str |
|
| 15 | 1 | text: str |
|
| 16 | |||
| 17 | 1 | def as_dict(self): |
|
| 18 | return asdict(self) |
||
| 19 |