Skip to content

Commit

Permalink
Fix code coverage in the test
Browse files Browse the repository at this point in the history
  • Loading branch information
juntyr authored Oct 6, 2023
1 parent 694d743 commit 9f19150
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/511_deserialize_any_map_string_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ fn test_map_custom_deserialize() {
struct CVisitor;
impl<'de> serde::de::Visitor<'de> for CVisitor {
type Value = CustomMap;

// GRCOV_EXCL_START
fn expecting(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result {
write!(formatter, "a map with string keys and values")
}
// GRCOV_EXCL_STOP

fn visit_map<A>(self, mut map: A) -> Result<Self::Value, A::Error>
where
Expand Down

0 comments on commit 9f19150

Please sign in to comment.