MCPcopy Create free account
hub / github.com/apache/mesos / operator==

Function operator==

src/common/resources.cpp:61–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59/////////////////////////////////////////////////
60
61bool operator==(
62 const Resource::AllocationInfo& left,
63 const Resource::AllocationInfo& right)
64{
65 if (left.has_role() != right.has_role()) {
66 return false;
67 }
68
69 if (left.has_role() && left.role() != right.role()) {
70 return false;
71 }
72
73 return true;
74}
75
76
77bool operator!=(

Callers

nothing calls this directly

Calls 8

compareResourceMetadataFunction · 0.85
typeMethod · 0.80
principalMethod · 0.80
rootMethod · 0.80
pathMethod · 0.45
mountMethod · 0.45
idMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected