| 75 | |
| 76 | |
| 77 | ModuleInfo* getModuleInfo(const std::string& pluginSlug, const std::string& moduleSlug) { |
| 78 | auto pluginIt = moduleInfos.find(pluginSlug); |
| 79 | if (pluginIt == moduleInfos.end()) |
| 80 | return NULL; |
| 81 | auto moduleIt = pluginIt->second.find(moduleSlug); |
| 82 | if (moduleIt == pluginIt->second.end()) |
| 83 | return NULL; |
| 84 | return &moduleIt->second; |
| 85 | } |
| 86 | |
| 87 | |
| 88 | bool isModuleWhitelisted(const std::string& pluginSlug, const std::string& moduleSlug) { |
no outgoing calls
no test coverage detected