Answer prose round 2: 0 🔴, 4 🟡 (0 misread); say what with_tests_of returns first, and word the Rust help and docstrings plainly

This commit is contained in:
2026-11-27 17:11:31 +01:00
parent 86efe8fa57
commit ce92bedde9
3 changed files with 13 additions and 12 deletions
+4 -3
View File
@@ -40,9 +40,10 @@ No model judges anything: the bench runs programs, and reads Haiku's own stream.
`*_test.go`, `*.test.*` or `*.spec.*`. A test of any other name counts as code, such as `src/PickTest.php` or
`src/pick-test.js`, so Haiku's change to it stands. In a Rust file, each inline `#[cfg(test)]` module stands as the planted
file has it, and the rest is as Haiku left it. So does each `#[cfg(test)] mod name;` the planted file declares, and the file it
names: `name.rs` or `name/mod.rs`, in the declaring file's folder or in a folder named for that file without `.rs`. Where the
planted file has such modules or declarations and Haiku's file lacks one of them, or its modules cannot be told apart, the
planted file stands whole; where the planted file has none, or its modules cannot be told apart, Haiku's stands. A Rust mutant
names: `name.rs` or `name/mod.rs`, in the declaring file's folder or in a folder named for that file without `.rs`. Where
Haiku's file lacks a module or declaration of the planted file's, or the planted file has inline modules and Haiku's cannot be
told apart, the planted file stands whole; where the planted file's inline modules cannot be told apart, or it has none and
Haiku's cannot be told apart, Haiku's stands. A Rust mutant
whose file's modules cannot be told apart, as where two share a name or a brace, string or comment is never closed, is passed
over. So is each Rust mutant of a tree where a `#[cfg(test)] mod name;` names no file the bench finds, or where a Rust file has a
string or comment that is never closed. No bug is planted in a file that such a declaration names.