From f0562504b7f758a439de60fe5fa76ad9ebfaba00 Mon Sep 17 00:00:00 2001 From: "Jamil Lambert, PhD" Date: Wed, 2 Jul 2025 13:34:29 +0100 Subject: [PATCH] Exclude deprecated fn from mutation testing Mutation testing generates mutants for deprecated functions `MedianTimePast::to_consensus_u32` and `Height::to_consensus_u32`. Add the functions to the mutation testing exclude list. --- .cargo/mutants.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.cargo/mutants.toml b/.cargo/mutants.toml index 70a1b8fd3..c2dc71d46 100644 --- a/.cargo/mutants.toml +++ b/.cargo/mutants.toml @@ -25,6 +25,8 @@ exclude_re = [ "SignedAmount::checked_abs", # Deprecated "NumberOfBlocks::value", # Deprecated "NumberOf512Seconds::to_consensus_u32", # Deprecated + "MedianTimePast::to_consensus_u32", # Deprecated + "Height::to_consensus_u32", # 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