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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user