Tell a Rust file's test modules apart as bytes and kill the surviving mutants
CI / tests (pull_request) Failing after 5m15s
CI / tests (pull_request) Failing after 5m15s
This commit is contained in:
@@ -735,6 +735,13 @@ class CheckedTreeTest(unittest.TestCase):
|
||||
checked_tree(planted, copy, str(self.root / "check"))
|
||||
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"))
|
||||
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"))
|
||||
|
||||
def test_copies_a_link_as_a_link(self):
|
||||
planted = self.tree("planted", {"calc.go": "bug"})
|
||||
copy = self.tree("copy", {"calc.go": "fixed"})
|
||||
|
||||
Reference in New Issue
Block a user