Read a Rust string with a regex and kill the surviving mutants
CI / tests (pull_request) Failing after 5m39s

This commit is contained in:
2026-11-26 00:28:10 +01:00
parent dd15690903
commit 6719d10034
3 changed files with 27 additions and 26 deletions
+4 -4
View File
@@ -736,11 +736,11 @@ class CheckedTreeTest(unittest.TestCase):
self.assertEqual(self.held("check"), {"src/lib.rs": "fn a() { 1 }\n#[cfg(test)]\nmod tests { fn t() {} }\n"})
def test_leaves_a_rust_link_as_a_link_whatever_it_points_at(self):
planted = self.tree("planted", {"lib.rs": "fn a() {}\n#[cfg(test)]\nmod tests {}\n", "real.txt": "text"})
copy = self.tree("copy", {"real.txt": "text"})
os.symlink("real.txt", os.path.join(copy, "lib.rs"))
planted = self.tree("planted", {"z.rs": "fn a() {}\n#[cfg(test)]\nmod tests {}\n", "a.txt": "text"})
copy = self.tree("copy", {"a.txt": "text"})
os.symlink("a.txt", os.path.join(copy, "z.rs"))
checked_tree(planted, copy, str(self.root / "check"))
self.assertEqual((os.readlink(self.root / "check/lib.rs"), self.held("check")["real.txt"]), ("real.txt", "text"))
self.assertEqual((os.readlink(self.root / "check/z.rs"), self.held("check")["a.txt"]), ("a.txt", "text"))
def test_copies_a_link_as_a_link(self):
planted = self.tree("planted", {"calc.go": "bug"})