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

Method ~TestContext

test/api/APIStepsCoreTest.cpp:68–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 WasmEdge_ExecutorRegisterImport(ExecCxt, StoreCxt, TestModCxt);
67 }
68 ~TestContext() {
69 WasmEdge_LoaderDelete(LoadCxt);
70 WasmEdge_ValidatorDelete(ValidCxt);
71 WasmEdge_ExecutorDelete(ExecCxt);
72 WasmEdge_StoreDelete(StoreCxt);
73 WasmEdge_StatisticsDelete(StatCxt);
74 WasmEdge_ModuleInstanceDelete(TestModCxt);
75 for (auto &&ModCxt : InstantiatedMod) {
76 WasmEdge_ModuleInstanceDelete(ModCxt);
77 }
78 InstantiatedMod.clear();
79 }
80 };
81
82 T.onInit = [&ConfRef](SpecTest::ContextHandle Parent,

Callers

nothing calls this directly

Calls 7

WasmEdge_LoaderDeleteFunction · 0.85
WasmEdge_ValidatorDeleteFunction · 0.85
WasmEdge_ExecutorDeleteFunction · 0.85
WasmEdge_StoreDeleteFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected