Skip to content

Commit 9676edc

Browse files
committed
Exclude encoding::Decodable from mutation testing
Recently added encoding::Decodable impls construct a new decoder. Mutation testing replaces these with Default::default(), which is equivalent to the intended new(). Exclude these from mutation testing to avoid false positives.
1 parent 51b74e7 commit 9676edc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.cargo/mutants.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ exclude_re = [
1111
"deserialize", # Skip serde mutation tests
1212
"serde_details::<impl de::Visitor<'_>", # Skip serde mutation tests
1313
"Iterator", # Mutating operations in an iterator can result in an infinite loop
14+
"impl encoding::Decodable", # Mutant replacing Default::default() is equivalent to returning new()
1415

1516
# ----------------------------------Crate-specific exclusions----------------------------------
1617
# Units

0 commit comments

Comments
 (0)