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

Function ErrorAsStatus

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

Source from the content-addressed store, hash-verified

224}
225
226inline Status ErrorAsStatus(int32_t v, int32_t* out) {
227 if (ARROW_PREDICT_FALSE(v == 42)) {
228 return Status::Invalid("42");
229 }
230 *out = v + 1;
231 return Status::OK();
232}
233
234ARROW_NO_INLINE Status ErrorAsStatusNoInline(int32_t v, int32_t* out) {
235 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