| 350 | } |
| 351 | |
| 352 | std::optional<ModuleManager::Options::ModuleOptions> ModuleManager::GetModuleOptions(std::string_view module_name) { |
| 353 | auto find_module_options_itr = std::find_if( |
| 354 | options_.modules_options.begin(), options_.modules_options.end(), |
| 355 | [&module_name](const auto& module_options) { |
| 356 | return module_options.name == module_name; |
| 357 | }); |
| 358 | |
| 359 | if (find_module_options_itr != options_.modules_options.end()) |
| 360 | return std::make_optional(*find_module_options_itr); |
| 361 | |
| 362 | return {}; |
| 363 | } |
| 364 | |
| 365 | void ModuleManager::InitModule(ModuleWrapper* module_wrapper_ptr) { |
| 366 | const auto& module_name = module_wrapper_ptr->info.name; |
nothing calls this directly
no outgoing calls
no test coverage detected