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

Function foreach

src/common/attributes.cpp:63–67  ·  view source on GitHub ↗

We don't enforce that attributes (name, type, value tuples) are unique and don't check that both attribute sets contain equal number of duplicate attributes. This will be changed when we enforce attribute name uniqueness after adding SET type support for attributes (MESOS-1215).

Source from the content-addressed store, hash-verified

61 // enforce attribute name uniqueness after adding SET type support
62 // for attributes (MESOS-1215).
63 foreach (const Attribute& attribute, attributes) {
64 if (!that.contains(attribute)) {
65 return false;
66 }
67 }
68
69 foreach (const Attribute& attribute, that) {
70 if (!contains(attribute)) {

Callers

nothing calls this directly

Calls 4

typeMethod · 0.80
containsFunction · 0.70
containsMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected