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

Function basic

cranelift/entity/src/boxed_slice.rs:164–175  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

162
163 #[test]
164 fn basic() {
165 let r0 = E(0);
166 let r1 = E(1);
167 let p = PrimaryMap::<E, isize>::new();
168 let m = p.into_boxed_slice();
169
170 let v: Vec<E> = m.keys().collect();
171 assert_eq!(v, []);
172
173 assert!(!m.is_valid(r0));
174 assert!(!m.is_valid(r1));
175 }
176
177 #[test]
178 fn iter() {

Callers

nothing calls this directly

Calls 5

collectMethod · 0.80
EClass · 0.70
newFunction · 0.50
into_boxed_sliceMethod · 0.45
keysMethod · 0.45

Tested by

no test coverage detected