| 332 | } |
| 333 | |
| 334 | static void ErrorSchemeStatus(benchmark::State& state) { // NOLINT non-const reference |
| 335 | auto integers = RandomIntegers(); |
| 336 | |
| 337 | for (auto _ : state) { |
| 338 | int64_t total = 0; |
| 339 | for (const auto v : integers) { |
| 340 | int32_t value = 0; |
| 341 | if (ARROW_PREDICT_TRUE(ErrorAsStatus(v, &value).ok())) { |
| 342 | total = Accumulate(total, value); |
| 343 | } |
| 344 | } |
| 345 | benchmark::DoNotOptimize(total); |
| 346 | } |
| 347 | |
| 348 | state.SetItemsProcessed(state.iterations() * integers.size()); |
| 349 | } |
| 350 | |
| 351 | static void ErrorSchemeStatusNoInline( |
| 352 | benchmark::State& state) { // NOLINT non-const reference |
nothing calls this directly
no test coverage detected