Skip to content

Commit f056250

Browse files
committed
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.
1 parent 4d31b14 commit f056250

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.cargo/mutants.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ exclude_re = [
2525
"SignedAmount::checked_abs", # Deprecated
2626
"NumberOfBlocks::value", # Deprecated
2727
"NumberOf512Seconds::to_consensus_u32", # Deprecated
28+
"MedianTimePast::to_consensus_u32", # Deprecated
29+
"Height::to_consensus_u32", # Deprecated
2830

2931
# primitives
3032
"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

0 commit comments

Comments
 (0)