| 22 | |
| 23 | namespace { |
| 24 | WasmEdge::Runtime::Instance::ModuleInstance *createModule() { |
| 25 | using namespace std::literals::string_view_literals; |
| 26 | WasmEdge::Plugin::Plugin::load( |
| 27 | std::filesystem::u8path("../../../plugins/wasm_bpf/" WASMEDGE_LIB_PREFIX |
| 28 | "wasmedgePluginWasmBpf" WASMEDGE_LIB_EXTENSION)); |
| 29 | if (const auto *Plugin = WasmEdge::Plugin::Plugin::find("wasm_bpf"sv)) { |
| 30 | if (const auto *Module = Plugin->findModule("wasm_bpf"sv)) { |
| 31 | return Module->create().release(); |
| 32 | } |
| 33 | } |
| 34 | return nullptr; |
| 35 | } |
| 36 | |
| 37 | std::filesystem::path getAssertsPath() { |
| 38 | std::filesystem::path thisFile(__FILE__); |
no test coverage detected