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

Function ErrorAsStatus

cpp/src/arrow/type_benchmark.cc:212–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212inline Status ErrorAsStatus(int32_t v, int32_t* out) {
213 if (ARROW_PREDICT_FALSE(v == 42)) {
214 return Status::Invalid("42");
215 }
216 *out = v + 1;
217 return Status::OK();
218}
219
220ARROW_NO_INLINE Status ErrorAsStatusNoInline(int32_t v, int32_t* out) {
221 if (ARROW_PREDICT_FALSE(v == 42)) {

Callers 1

ErrorSchemeStatusFunction · 0.85

Calls 2

InvalidFunction · 0.70
OKFunction · 0.70

Tested by

no test coverage detected