Skip to content

Commit

Permalink
Exclude simple forwarding methods from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
JelteF committed Aug 23, 2023
1 parent fd4b03d commit 6be90ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/btreemap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ impl<K: Eq + Ord, V> IndexMut<K> for DefaultBTreeMap<K, V> {
}
}

// grcov-excl-start
/// These methods simply forward to the underlying `BTreeMap`, see that
/// [documentation](https://doc.rust-lang.org/std/collections/struct.BTreeMap.html) for
/// the usage of these methods.
Expand Down Expand Up @@ -320,6 +321,7 @@ impl<K: Eq + Ord, V> DefaultBTreeMap<K, V> {
self.map.is_empty()
}
}
// grcov-excl-stop

impl<K: Eq + Ord, V: Default> FromIterator<(K, V)> for DefaultBTreeMap<K, V> {
fn from_iter<I>(iter: I) -> Self
Expand Down
2 changes: 2 additions & 0 deletions src/hashmap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ impl<K: Eq + Hash, V> IndexMut<K> for DefaultHashMap<K, V> {
}
}

// grcov-excl-start
/// These methods simply forward to the underlying `HashMap`, see that
/// [documentation](https://doc.rust-lang.org/std/collections/struct.HashMap.html) for
/// the usage of these methods.
Expand Down Expand Up @@ -288,6 +289,7 @@ impl<K: Eq + Hash, V> DefaultHashMap<K, V> {
self.map.remove_entry(k)
}
}
// grcov-excl-stop

impl<K: Eq + Hash, V: Default> FromIterator<(K, V)> for DefaultHashMap<K, V> {
fn from_iter<I>(iter: I) -> Self
Expand Down

0 comments on commit 6be90ce

Please sign in to comment.