MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / TEST

Function TEST

test/api/APIAOTNestedVMTest.cpp:197–203  ·  view source on GitHub ↗

Call graph: wasmFn() // Executor::This = executor1 hostFnCheck() // EXPECT_EQ(Executor::This, executor1) hostFnOverwrite() // create nested VM wasmFnOverwrite() // Executor::This = executor2 hostFnCheck() // EXPECT_EQ(Executor::This, executor1) */

Source from the content-addressed store, hash-verified

195 hostFnCheck() // EXPECT_EQ(Executor::This, executor1)
196*/
197TEST(APIAOTNestedVMTest, NestedVM) {
198 compileWasm();
199 callWasm("wasmFn");
200 // wasmedge doesn't build GMock by default
201 EXPECT_EQ(CalledHostFnCheck, 2);
202 EXPECT_EQ(CalledHostFnOverwrite, 1);
203}
204} // namespace

Callers

nothing calls this directly

Calls 2

compileWasmFunction · 0.85
callWasmFunction · 0.85

Tested by

no test coverage detected