| 318 | } |
| 319 | |
| 320 | static void ErrorSchemeStatus(benchmark::State& state) { // NOLINT non-const reference |
| 321 | auto integers = RandomIntegers(); |
| 322 | |
| 323 | for (auto _ : state) { |
| 324 | int64_t total = 0; |
| 325 | for (const auto v : integers) { |
| 326 | int32_t value = 0; |
| 327 | if (ARROW_PREDICT_TRUE(ErrorAsStatus(v, &value).ok())) { |
| 328 | total = Accumulate(total, value); |
| 329 | } |
| 330 | } |
| 331 | benchmark::DoNotOptimize(total); |
| 332 | } |
| 333 | |
| 334 | state.SetItemsProcessed(state.iterations() * integers.size()); |
| 335 | } |
| 336 | |
| 337 | static void ErrorSchemeStatusNoInline( |
| 338 | benchmark::State& state) { // NOLINT non-const reference |
nothing calls this directly
no test coverage detected