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

Function smoke

crates/environ/src/scopevec.rs:73–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71
72 #[test]
73 fn smoke() {
74 let scope = ScopeVec::new();
75 let a = scope.push(Vec::new());
76 let b = scope.push(vec![1, 2, 3]);
77 let c = scope.push(vec![4, 5, 6]);
78 assert_eq!(a.len(), 0);
79 b[0] = 4;
80 c[2] = 5;
81 assert_eq!(a, []);
82 assert_eq!(b, [4, 2, 3]);
83 assert_eq!(c, [4, 5, 5]);
84 }
85}

Callers

nothing calls this directly

Calls 2

newFunction · 0.50
pushMethod · 0.45

Tested by

no test coverage detected