MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / insert_duplicate

Function insert_duplicate

cranelift/codegen/src/ir/constant.rs:292–298  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

290
291 #[test]
292 fn insert_duplicate() {
293 let mut sut = ConstantPool::new();
294 let a = sut.insert(vec![1, 2, 3].into());
295 sut.insert(vec![4, 5, 6].into());
296 let b = sut.insert(vec![1, 2, 3].into());
297 assert_eq!(a, b);
298 }
299
300 #[test]
301 fn clear() {

Callers

nothing calls this directly

Calls 2

newFunction · 0.50
insertMethod · 0.45

Tested by

no test coverage detected