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

Function checkComponentSupported

test/spec/spectest.cpp:350–367  ·  view source on GitHub ↗

Gets the component model support status of each test folder. Will be deleted when component model is fully supported.

Source from the content-addressed store, hash-verified

348// Gets the component model support status of each test folder.
349// Will be deleted when component model is fully supported.
350bool checkComponentSupported(std::string_view Folder, WasmEdge::WasmPhase P) {
351 auto It = ComponentModelFolders.find(std::string(Folder));
352 if (It == ComponentModelFolders.end()) {
353 return false;
354 }
355 switch (P) {
356 case WasmEdge::WasmPhase::Loading:
357 return It->second.Load;
358 case WasmEdge::WasmPhase::Validation:
359 return It->second.Validate;
360 case WasmEdge::WasmPhase::Instantiation:
361 return It->second.Instantiate;
362 case WasmEdge::WasmPhase::Execution:
363 return It->second.Execute;
364 default:
365 return false;
366 }
367}
368
369} // namespace
370

Callers 1

processCommandsMethod · 0.85

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected