Answer prose round 1: 0 🔴, 2 🟡 (0 misread); reword the comment as the reviewer did
CI / tests (pull_request) Has been cancelled
CI / tests (pull_request) Has been cancelled
This commit was merged in pull request #723.
This commit is contained in:
@@ -85,9 +85,9 @@ def with_tests_of(planted: bytes, copy: bytes) -> bytes:
|
||||
planted has some and copy's cannot be told apart, or copy lacks one of planted's, planted is returned: Haiku's file has no module
|
||||
to put them in."""
|
||||
before, after = modules(planted), modules(copy)
|
||||
# Haiku's file stands where the planted file's modules can't be told apart: that file isn't the mutant's, whose file is passed over
|
||||
# in that case, and a guess at which module is which could swap a test for another. Haiku's file is what the bench checked before
|
||||
# it kept Rust test modules, so a fix that passed then still passes.
|
||||
# Haiku's file stands where planted's modules can't be told apart. The bench never plants a bug in such a file, and a guess at
|
||||
# which module is which could swap one test for another. Haiku's file is also what the check took before the bench put back
|
||||
# planted test modules, so a fix that passed then still passes.
|
||||
if before is None or (after is None and not before):
|
||||
return copy
|
||||
if after is None or before.keys() - after.keys():
|
||||
|
||||
Reference in New Issue
Block a user