Gets the component model support status of each test folder. Will be deleted when component model is fully supported.
| 348 | // Gets the component model support status of each test folder. |
| 349 | // Will be deleted when component model is fully supported. |
| 350 | bool 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 |
no test coverage detected