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

Function foreach

src/master/quota_handler.cpp:221–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219 ResourceQuantities capacity;
220
221 foreach (const Resources& agent, agents) {
222 capacity += ResourceQuantities::fromScalarResources(
223 agent.nonRevocable().scalars());
224 }
225
226 if (!capacity.contains(totalGuarantees)) {
227 // TODO(bmahler): Specialize this message based on whether

Callers 2

foreachvalueFunction · 0.70
_statusMethod · 0.70

Calls 15

BadRequestClass · 0.85
QuotaClass · 0.85
isStrictSubroleOfFunction · 0.85
copyFunction · 0.85
isWhitelistedRoleMethod · 0.80
consumedQuotaMethod · 0.80
offeredMethod · 0.80
validateFunction · 0.70
foreachvalueFunction · 0.70
containsFunction · 0.50
stringifyFunction · 0.50

Tested by

no test coverage detected