From bec1607924f299d448c6ae75826e167ad9654be6 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Wed, 2 Oct 2024 07:56:44 -0700 Subject: [PATCH] Fix typo and false positive --- book/src/exit-codes.md | 2 +- testdata/well_tested/src/simple_fns.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/book/src/exit-codes.md b/book/src/exit-codes.md index a0885cc4..70253924 100644 --- a/book/src/exit-codes.md +++ b/book/src/exit-codes.md @@ -8,7 +8,7 @@ cargo-mutants returns an exit code that can be used by scripts or CI. * **2**: Found some mutants that were not covered by tests. -* **3**: Some tests timed out: possibly the mutatations caused an infinite loop, +* **3**: Some tests timed out: possibly the mutations caused an infinite loop, or the timeout is too low. * **4**: The tests are already failing or hanging before any mutations are diff --git a/testdata/well_tested/src/simple_fns.rs b/testdata/well_tested/src/simple_fns.rs index 2b4d6f86..7a17fec2 100644 --- a/testdata/well_tested/src/simple_fns.rs +++ b/testdata/well_tested/src/simple_fns.rs @@ -46,7 +46,7 @@ mod tests { } #[test] - fn test_mutatable_functions() { + fn main_tests() { assert_eq!(returns_42u32(), 42); assert!(divisible_by_three(0));