MCPcopy Create free account
hub / github.com/apache/arrow / Equals

Method Equals

cpp/src/arrow/status.h:448–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446}
447
448bool Status::Equals(const Status& s) const {
449 if (state_ == s.state_) {
450 return true;
451 }
452
453 if (ok() || s.ok()) {
454 return false;
455 }
456
457 if (detail() != s.detail()) {
458 if ((detail() && !s.detail()) || (!detail() && s.detail())) {
459 return false;
460 }
461 return *detail() == *s.detail();
462 }
463
464 return code() == s.code() && message() == s.message();
465}
466
467/// \cond FALSE
468// (note: emits warnings on Doxygen < 1.8.15,

Callers

nothing calls this directly

Calls 5

okFunction · 0.85
messageFunction · 0.85
codeFunction · 0.70
okMethod · 0.45
codeMethod · 0.45

Tested by

no test coverage detected