| 283 | } |
| 284 | |
| 285 | static void ErrorSchemeBool(benchmark::State& state) { // NOLINT non-const reference |
| 286 | auto integers = RandomIntegers(); |
| 287 | |
| 288 | for (auto _ : state) { |
| 289 | int64_t total = 0; |
| 290 | for (const auto v : integers) { |
| 291 | auto pair = ErrorAsBool(v); |
| 292 | if (!ARROW_PREDICT_FALSE(pair.first)) { |
| 293 | total = Accumulate(total, pair.second); |
| 294 | } |
| 295 | } |
| 296 | benchmark::DoNotOptimize(total); |
| 297 | } |
| 298 | |
| 299 | state.SetItemsProcessed(state.iterations() * integers.size()); |
| 300 | } |
| 301 | |
| 302 | static void ErrorSchemeBoolNoInline( |
| 303 | benchmark::State& state) { // NOLINT non-const reference |
nothing calls this directly
no test coverage detected