Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytecodealliance/wasmtime
/ clear
Function
clear
cranelift/codegen/src/ir/constant.rs:301–308 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
299
300
#[test]
301
fn clear() {
302
let mut sut = ConstantPool::new();
303
sut.insert(vec![1, 2, 3].into());
304
assert_eq!(sut.len(), 1);
305
306
sut.clear();
307
assert_eq!(sut.len(), 0);
308
}
309
310
#[test]
311
fn iteration_order() {
Callers
nothing calls this directly
Calls
3
new
Function · 0.50
insert
Method · 0.45
clear
Method · 0.45
Tested by
no test coverage detected