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

Function basic

cranelift/entity/src/primary.rs:390–400  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

388
389 #[test]
390 fn basic() {
391 let r0 = E(0);
392 let r1 = E(1);
393 let m = PrimaryMap::<E, isize>::new();
394
395 let v: Vec<E> = m.keys().collect();
396 assert_eq!(v, []);
397
398 assert!(!m.is_valid(r0));
399 assert!(!m.is_valid(r1));
400 }
401
402 #[test]
403 fn push() {

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected