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

Function toVector

src/tests/resource_quantities_tests.cpp:40–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38
39
40static vector<pair<string, double>> toVector(
41 const ResourceQuantities& quantities)
42{
43 vector<pair<string, double>> result;
44
45 foreach (auto&& quantity, quantities) {
46 result.push_back(std::make_pair(quantity.first, quantity.second.value()));
47 }
48
49 return result;
50}
51
52
53TEST(QuantitiesTest, FromStringValid)

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected