Represent the results of an Alpine license detection, including intermediate steps.
| 1365 | |
| 1366 | @dataclasses.dataclass |
| 1367 | class ApkLicenseDetection: |
| 1368 | """ |
| 1369 | Represent the results of an Alpine license detection, including intermediate steps. |
| 1370 | """ |
| 1371 | declared_license: str |
| 1372 | cleaned_license: str |
| 1373 | mapped_license: str |
| 1374 | license_detections: list |
| 1375 | license_expression: str |
| 1376 | |
| 1377 | def to_dict(self): |
| 1378 | return dict( |
| 1379 | declared_license=self.declared_license, |
| 1380 | cleaned_license=self.cleaned_license, |
| 1381 | mapped_license=self.mapped_license, |
| 1382 | license_detections=self.license_detections, |
| 1383 | license_expression=self.license_expression, |
| 1384 | ) |
| 1385 | |
| 1386 | |
| 1387 | def get_alpine_license_detection(declared): |
no outgoing calls
no test coverage detected