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

Function createExecutorInfo

src/tests/mesos.hpp:659–681  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

657 typename TCommandInfo,
658 typename TFrameworkID>
659inline TExecutorInfo createExecutorInfo(
660 const TExecutorID& executorId,
661 const Option<TCommandInfo>& command,
662 const Option<TResources>& resources,
663 const Option<typename TExecutorInfo::Type>& type,
664 const Option<TFrameworkID>& frameworkId)
665{
666 TExecutorInfo executor;
667 executor.mutable_executor_id()->CopyFrom(executorId);
668 if (command.isSome()) {
669 executor.mutable_command()->CopyFrom(command.get());
670 }
671 if (resources.isSome()) {
672 executor.mutable_resources()->CopyFrom(resources.get());
673 }
674 if (type.isSome()) {
675 executor.set_type(type.get());
676 }
677 if (frameworkId.isSome()) {
678 executor.mutable_framework_id()->CopyFrom(frameworkId.get());
679 }
680 return executor;
681}
682
683
684template <typename TExecutorInfo,

Callers 15

TEST_PFunction · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85
TYPED_TESTFunction · 0.85
createOperationsMethod · 0.85
TEST_FFunction · 0.85
foreachFunction · 0.85
TYPED_TESTFunction · 0.85
TEST_FFunction · 0.85

Calls 5

NoneClass · 0.85
CopyFromMethod · 0.80
parseFunction · 0.50
isSomeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected