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

Function foreach

src/master/weights_handler.cpp:73–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71 RepeatedPtrField<WeightInfo> filteredWeightInfos;
72
73 foreach (const WeightInfo& weightInfo, weightInfos) {
74 filteredWeightInfos.Add()->CopyFrom(weightInfo);
75 }
76
77 return OK(JSON::protobuf(filteredWeightInfos),
78 request.url.query.get("jsonp"));

Callers 1

foreachvalueFunction · 0.70

Calls 11

trimFunction · 0.85
BadRequestClass · 0.85
CopyFromMethod · 0.80
isWhitelistedRoleMethod · 0.80
weightMethod · 0.80
validateFunction · 0.70
stringifyFunction · 0.50
isSomeMethod · 0.45
containsMethod · 0.45
authorizedMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected