Ignore mutants for the decoder helper method which wraps default
What changed, and why it matters
This commit only updates a configuration file used by a mutation-testing tool. It tells the tool to skip certain automatically generated tests for a helper method. There is no change to the actual Bitcoin library code, no bug fix, and no security relevance.
No action needed. This is a benign configuration-only commit with no security implications.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch modifies .cargo/mutants.toml, adding an exclusion rule for ‘Decode::decoder’ and updating an existing regex comment. This is a tooling-only change for cargo-mutants, preventing it from generating meaningless mutants for decoder helper methods. No Rust source code is changed.
Changed components
.cargo/mutants.tomlInspect captured patch +2 / −1
diff --git a/.cargo/mutants.toml b/.cargo/mutants.toml
index d6f5d5f2..3d68ec64 100644
--- a/.cargo/mutants.toml
+++ b/.cargo/mutants.toml
@@ -11,7 +11,8 @@ exclude_re = [
"deserialize", # Skip serde mutation tests
"serde_details::<impl de::Visitor<'_>", # Skip serde mutation tests
"Iterator", # Mutating operations in an iterator can result in an infinite loop
- "<impl .*Decodable for .*>::decoder", # Mutant replacing Default::default() is equivalent to returning new()
+ "Decode::decoder", # Mutant replacing Self::Decoder::default() with Default::default() is equivalent
+ "<impl .*Decode for .*>::decoder", # Mutant replacing Default::default() is equivalent to returning new()
"<impl .*Decoder for .*>::read_limit", # Function is for optimization and does not need to be tested.
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.