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.
This commit is contained in:
Jamil Lambert, PhD 2025-07-02 13:34:29 +01:00
parent 4d31b141a8
commit f0562504b7
No known key found for this signature in database
GPG Key ID: 54DC29234AB5D2C0
1 changed files with 2 additions and 0 deletions

View File

@ -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