exclude deprecated functions from mutation test
What changed, and why it matters
This commit only updates the project's mutation-testing configuration file. It tells the mutation-testing tool to skip testing certain deprecated functions. There is no change to actual library code, no bug fix, and no security relevance.
No security action needed. This is a benign tooling/configuration commit.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff modifies .cargo/mutants.toml to add four additional deprecated to_hex methods (Sequence::to_hex, CompactTarget::to_hex, Script::to_hex, ScriptBuf::to_hex) to the existing exclude_re list. This is a test-tooling configuration change; it does not alter source code behavior, APIs, or fix any vulnerability.
Changed components
.cargo/mutants.tomlInspect captured patch +4 / −0
diff --git a/.cargo/mutants.toml b/.cargo/mutants.toml
index 38f3bdfc..153d25fe 100644
--- a/.cargo/mutants.toml
+++ b/.cargo/mutants.toml
@@ -26,6 +26,7 @@ exclude_re = [
"NumberOf512Seconds::to_consensus_u32", # Deprecated
"MedianTimePast::to_consensus_u32", # Deprecated
"Height::to_consensus_u32", # Deprecated
+ "Sequence::to_hex", # Deprecated
# primitives
"Sequence::from_512_second_intervals", # Mutant from replacing | with ^, this returns the same value since the XOR is taken against the u16 with an all-zero bitmask
@@ -36,4 +37,7 @@ exclude_re = [
"decode_cursor", # Mutating operations in decode_cursor can result in an infinite loop
"fmt_debug", # Mutants from formatting/display changes
"fmt_debug_pretty", # Mutants from formatting/display changes
+ "CompactTarget::to_hex", # Deprecated
+ "Script::to_hex", # Deprecated
+ "ScriptBuf::to_hex", # Deprecated
]
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.