| 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 |
no test coverage detected