Coverage for rust2rpm/project/shared.py: 100%
4 statements
« prev ^ index » next coverage.py v7.6.7, created at 2024-11-26 13:52 +0100
« prev ^ index » next coverage.py v7.6.7, created at 2024-11-26 13:52 +0100
1"""Module containing shared functionality for loading project metadata."""
4def file_name_auto_patch(name: str) -> str:
5 """File name of the default name for the automatically generated Cargo.toml patch."""
6 return f"{name}-fix-metadata-auto.diff"
9def file_name_manual_patch(name: str) -> str:
10 """File name of the default name for the manually created Cargo.toml patch."""
11 return f"{name}-fix-metadata.diff"