Skip to content

Commit d4b8d6c

Browse files
committed
Make mutation testing exclude more specific
Add the function name to the encoding::Decodable exclusion so that if new functions are added in the future they will still be tested.
1 parent b33216c commit d4b8d6c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.cargo/mutants.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ 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()
14+
"<impl encoding::Decodable for .*>::decoder", # Mutant replacing Default::default() is equivalent to returning new()
15+
1516

1617
# ----------------------------------Crate-specific exclusions----------------------------------
1718
# Units

0 commit comments

Comments
 (0)