MCPcopy Create free account
hub / github.com/apache/brpc / CompareTo

Method CompareTo

src/butil/version.cc:160–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160int Version::CompareTo(const Version& other) const {
161 DCHECK(IsValid());
162 DCHECK(other.IsValid());
163 return CompareVersionComponents(components_, other.components_);
164}
165
166const std::string Version::GetString() const {
167 DCHECK(IsValid());

Callers 1

TESTFunction · 0.80

Calls 2

CompareVersionComponentsFunction · 0.85
IsValidMethod · 0.45

Tested by 1

TESTFunction · 0.64