MCPcopy Create free account
hub / github.com/3rdparty/libprocess / foreachpair

Method foreachpair

src/tests/benchmarks.cpp:139–145  ·  view source on GitHub ↗

Ensure all parameters were provided.

Source from the content-addressed store, hash-verified

137
138 // Ensure all parameters were provided.
139 foreachpair (const string& parameter,
140 const Option<string>& value,
141 parameters) {
142 if (value.isNone()) {
143 return http::BadRequest("Missing '" + parameter + "' parameter");
144 }
145 }
146
147 server = UPID(parameters["server"].get());
148 link(server);

Callers

nothing calls this directly

Calls 1

BadRequestClass · 0.85

Tested by

no test coverage detected