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

Method Equals

cpp/src/arrow/status.h:450–467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

448}
449
450bool Status::Equals(const Status& s) const {
451 if (state_ == s.state_) {
452 return true;
453 }
454
455 if (ok() || s.ok()) {
456 return false;
457 }
458
459 if (detail() != s.detail()) {
460 if ((detail() && !s.detail()) || (!detail() && s.detail())) {
461 return false;
462 }
463 return *detail() == *s.detail();
464 }
465
466 return code() == s.code() && message() == s.message();
467}
468
469/// \cond FALSE
470// (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