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

Function ErrorAsStatusNoInline

cpp/src/arrow/type_benchmark.cc:220–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220ARROW_NO_INLINE Status ErrorAsStatusNoInline(int32_t v, int32_t* out) {
221 if (ARROW_PREDICT_FALSE(v == 42)) {
222 return Status::Invalid("42");
223 }
224 *out = v + 1;
225 return Status::OK();
226}
227
228inline Result<int32_t> ErrorAsResult(int32_t v) {
229 if (ARROW_PREDICT_FALSE(v == 42)) {

Callers 1

Calls 2

InvalidFunction · 0.70
OKFunction · 0.70

Tested by

no test coverage detected