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

Function ErrorAsStatusNoInline

cpp/src/arrow/type_benchmark.cc:234–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234ARROW_NO_INLINE Status ErrorAsStatusNoInline(int32_t v, int32_t* out) {
235 if (ARROW_PREDICT_FALSE(v == 42)) {
236 return Status::Invalid("42");
237 }
238 *out = v + 1;
239 return Status::OK();
240}
241
242inline Result<int32_t> ErrorAsResult(int32_t v) {
243 if (ARROW_PREDICT_FALSE(v == 42)) {

Callers 1

Calls 2

InvalidFunction · 0.70
OKFunction · 0.70

Tested by

no test coverage detected