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

Method StartSlave

src/tests/mesos.cpp:337–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335
336
337Try<Owned<cluster::Slave>> MesosTest::StartSlave(const SlaveOptions& options)
338{
339 Try<Owned<cluster::Slave>> slave = cluster::Slave::create(
340 options.detector,
341 options.flags.isNone() ? CreateSlaveFlags() : options.flags.get(),
342 options.id,
343 options.containerizer,
344 options.gc,
345 options.taskStatusUpdateManager,
346 options.resourceEstimator,
347 options.qosController,
348 options.secretGenerator,
349 options.authorizer,
350 options.futureTracker,
351 options.csiServer,
352 options.mock);
353
354 if (slave.isSome() && !options.mock) {
355 slave.get()->start();
356 }
357
358 return slave;
359}
360
361
362Try<Owned<cluster::Slave>> MesosTest::StartSlave(

Callers 12

TEST_PFunction · 0.80
TYPED_TESTFunction · 0.80
TEST_FFunction · 0.80
TYPED_TESTFunction · 0.80
foreachFunction · 0.80
TYPED_TESTFunction · 0.80
TEST_FFunction · 0.80
TYPED_TESTFunction · 0.80
TEST_FFunction · 0.80
TEST_PFunction · 0.80
TEST_FFunction · 0.80

Calls 6

SlaveOptionsClass · 0.85
startMethod · 0.65
createFunction · 0.50
isNoneMethod · 0.45
getMethod · 0.45
isSomeMethod · 0.45

Tested by

no test coverage detected