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

Function createCommandInfo

src/tests/mesos.hpp:636–651  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

634
635template <typename TCommandInfo>
636inline TCommandInfo createCommandInfo(
637 const Option<std::string>& value = None(),
638 const std::vector<std::string>& arguments = {})
639{
640 TCommandInfo commandInfo;
641 if (value.isSome()) {
642 commandInfo.set_value(value.get());
643 }
644 if (!arguments.empty()) {
645 commandInfo.set_shell(false);
646 foreach (const std::string& arg, arguments) {
647 commandInfo.add_arguments(arg);
648 }
649 }
650 return commandInfo;
651}
652
653
654template <typename TExecutorInfo,

Callers 15

TEST_FFunction · 0.85
TEST_FFunction · 0.85
TEST_PFunction · 0.85
TEST_FFunction · 0.85
TEST_PFunction · 0.85
TEST_FFunction · 0.85
TESTFunction · 0.85
TEST_FFunction · 0.85
TEST_PFunction · 0.85
TEST_FFunction · 0.85

Calls 4

NoneClass · 0.85
isSomeMethod · 0.45
getMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected