| 47 | |
| 48 | template <typename T> |
| 49 | std::unique_ptr<Runtime::Instance::ModuleInstance> |
| 50 | createPluginModule(std::string_view PName, std::string_view MName) { |
| 51 | using namespace std::literals::string_view_literals; |
| 52 | if (const auto *Plugin = Plugin::Plugin::find(PName)) { |
| 53 | if (const auto *Module = Plugin->findModule(MName)) { |
| 54 | return Module->create(); |
| 55 | } |
| 56 | } |
| 57 | spdlog::debug("Plugin: {} , module name: {} not found. Mock instead."sv, |
| 58 | PName, MName); |
| 59 | return std::make_unique<T>(); |
| 60 | } |
| 61 | } // namespace |
| 62 | |
| 63 | VM::VM(const Configure &Conf) |
nothing calls this directly
no test coverage detected