MCPcopy Create free account
hub / github.com/apache/mesos / addMasterDetectorModules

Function addMasterDetectorModules

src/tests/module.cpp:242–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240
241
242static void addMasterDetectorModules(Modules* modules)
243{
244 CHECK_NOTNULL(modules);
245
246 // Now add our test anonymous module.
247 Modules::Library* library = modules->add_libraries();
248 library->set_file(getModulePath("testmasterdetector"));
249
250 // To add a new module from this library, create a new ModuleID enum
251 // and tie it with a module name.
252 addModule(
253 library,
254 TestMasterDetector,
255 "org_apache_mesos_TestMasterDetector");
256}
257
258
259Try<Nothing> initModules(const Option<Modules>& modules)

Callers 1

initModulesFunction · 0.85

Calls 2

getModulePathFunction · 0.85
addModuleFunction · 0.85

Tested by

no test coverage detected