Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytecodealliance/wasmtime
/ insert
Function
insert
cranelift/codegen/src/ir/constant.rs:284–289 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
282
283
#[test]
284
fn insert() {
285
let mut sut = ConstantPool::new();
286
sut.insert(vec![1, 2, 3].into());
287
sut.insert(vec![4, 5, 6].into());
288
assert_eq!(sut.len(), 2);
289
}
290
291
#[test]
292
fn insert_duplicate() {
Callers
nothing calls this directly
Calls
2
new
Function · 0.50
insert
Method · 0.45
Tested by
no test coverage detected