Answer stability round 2: 0 🔴, 1 🟡 (0 misread); compare each test declaration's whole text, so an attribute a fix adds to it counts as a change

This commit is contained in:
2026-11-27 17:43:33 +01:00
parent f5940f265d
commit 814779c9a1
4 changed files with 26 additions and 14 deletions
+3 -3
View File
@@ -219,10 +219,10 @@ def rust_test_files(tree: str) -> set[str] | None:
for path in sorted(files):
if not path.endswith(".rs") or os.path.islink(os.path.join(tree, path)):
continue
names = declared(pathlib.Path(tree, path).read_bytes())
if names is None:
declarations = declared(pathlib.Path(tree, path).read_bytes())
if declarations is None:
return None
for name in names:
for name, _ in declarations:
standing = files.intersection(homes(path, name))
if not standing:
return None