Parse test metadata into a set of test names. Args: metadata: Test metadata in format "TEST:name:path:category\\n..." Returns: Set of test names
(metadata: str)
| 134 | |
| 135 | |
| 136 | def parse_metadata(metadata: str) -> set[str]: |
| 137 | """ |
| 138 | Parse test metadata into a set of test names. |
| 139 | |
| 140 | Args: |
| 141 | metadata: Test metadata in format "TEST:name:path:category\\n..." |
| 142 | |
| 143 | Returns: |
| 144 | Set of test names |
| 145 | """ |
| 146 | test_names = set() |
| 147 | for line in metadata.strip().split("\n"): |
| 148 | if line and line.startswith("TEST:"): |
| 149 | parts = line.split(":") |
| 150 | if len(parts) >= 2: |
| 151 | test_names.add(parts[1]) |
| 152 | return test_names |
| 153 | |
| 154 | |
| 155 | def detect_changes(tests_dir: Path, build_dir: Path) -> dict[str, list[str] | bool]: |