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

Function iteration_order

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

Source from the content-addressed store, hash-verified

309
310 #[test]
311 fn iteration_order() {
312 let mut sut = ConstantPool::new();
313 sut.insert(vec![1, 2, 3].into());
314 sut.insert(vec![4, 5, 6].into());
315 sut.insert(vec![1, 2, 3].into());
316 let data = sut.iter().map(|(_, v)| v).collect::<Vec<&ConstantData>>();
317 assert_eq!(data, vec![&vec![1, 2, 3].into(), &vec![4, 5, 6].into()]);
318 }
319
320 #[test]
321 fn get() {

Callers

nothing calls this directly

Calls 4

newFunction · 0.50
insertMethod · 0.45
mapMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected