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

Function createPorts

src/tests/resources_utils.cpp:43–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41
42
43Resource createPorts(const ::mesos::Value::Ranges& ranges)
44{
45 Value value;
46 value.set_type(Value::RANGES);
47 value.mutable_ranges()->CopyFrom(ranges);
48
49 Resource resource;
50 resource.set_name("ports");
51 resource.set_type(Value::RANGES);
52 resource.mutable_ranges()->CopyFrom(value.ranges());
53
54 return resource;
55}
56
57
58Try<::mesos::Value::Ranges> fragment(

Callers 5

TEST_PFunction · 0.85
foreachFunction · 0.85
SetUpTestCaseMethod · 0.85
TEST_PFunction · 0.85
foreachFunction · 0.85

Calls 1

CopyFromMethod · 0.80

Tested by

no test coverage detected