Skip to content

Commit 90ce314

Browse files
committed
Add mutation excludes for impl encoding::Decoder
The min_byte_needed function is a simple cast for optimization and does not need to be tested. Add a mutation testing exclude for all of these functions.
1 parent d4b8d6c commit 90ce314

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
@@ -12,6 +12,7 @@ exclude_re = [
1212
"serde_details::<impl de::Visitor<'_>", # Skip serde mutation tests
1313
"Iterator", # Mutating operations in an iterator can result in an infinite loop
1414
"<impl encoding::Decodable for .*>::decoder", # Mutant replacing Default::default() is equivalent to returning new()
15+
"<impl encoding::Decoder for .*>::min_bytes_needed", # Function is just a cast for optimization.
1516

1617

1718
# ----------------------------------Crate-specific exclusions----------------------------------

0 commit comments

Comments
 (0)