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

Method TestContext

test/api/APIVMCoreTest.cpp:49–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47 WasmEdge_VMContext *VM;
48 WasmEdge_ModuleInstanceContext *TestModCxt;
49 TestContext(const WasmEdge::Configure &C) {
50 WasmEdge_ConfigureContext *ConfCxt = createConf(C);
51 VM = WasmEdge_VMCreate(ConfCxt, nullptr);
52 WasmEdge_ConfigureDelete(ConfCxt);
53 TestModCxt = createSpecTestModule();
54 WasmEdge_VMRegisterModuleFromImport(VM, TestModCxt);
55 }
56 ~TestContext() {
57 WasmEdge_VMDelete(VM);
58 WasmEdge_ModuleInstanceDelete(TestModCxt);

Callers

nothing calls this directly

Calls 4

createConfFunction · 0.85
WasmEdge_VMCreateFunction · 0.85
WasmEdge_ConfigureDeleteFunction · 0.85
createSpecTestModuleFunction · 0.85

Tested by

no test coverage detected