Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/carllerche/assert-struct
/ insert
Method
insert
assert-struct/tests/maps.rs:259–261 ·
view source on GitHub ↗
(&mut self, key: K, value: V)
Source
from the content-addressed store, hash-verified
257
}
258
259
fn insert(&mut self, key: K, value: V) {
260
self.entries.push((key, value));
261
}
262
263
fn len(&self) -> usize {
264
self.entries.len()
Callers
15
expand_struct_assertion
Function · 0.80
test_basic_method_calls
Function · 0.80
test_method_calls_with_comparisons
Function · 0.80
test_method_calls_with_arguments
Function · 0.80
test_exact_map_matching
Function · 0.80
test_partial_map_matching
Function · 0.80
test_map_with_comparison_operators
Function · 0.80
test_map_with_equality_operators
Function · 0.80
test_btree_map
Function · 0.80
test_nested_patterns
Function · 0.80
test_map_with_regex_patterns
Function · 0.80
test_mixed_patterns
Function · 0.80
Calls
1
push
Method · 0.80
Tested by
no test coverage detected