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

Function createEnvironment

src/tests/mesos.hpp:2488–2498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2486
2487
2488inline mesos::Environment createEnvironment(
2489 const hashmap<std::string, std::string>& map)
2490{
2491 mesos::Environment environment;
2492 foreachpair (const std::string& key, const std::string& value, map) {
2493 mesos::Environment::Variable* variable = environment.add_variables();
2494 variable->set_name(key);
2495 variable->set_value(value);
2496 }
2497 return environment;
2498}
2499
2500
2501// Macros to get/create (default) ExecutorInfos and FrameworkInfos.

Callers 1

TEST_FFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected