| 282 | } |
| 283 | |
| 284 | static void ErrorSchemeNoErrorNoInline( |
| 285 | 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 | total = Accumulate(total, NoErrorNoInline(v)); |
| 292 | } |
| 293 | benchmark::DoNotOptimize(total); |
| 294 | } |
| 295 | |
| 296 | state.SetItemsProcessed(state.iterations() * integers.size()); |
| 297 | } |
| 298 | |
| 299 | static void ErrorSchemeBool(benchmark::State& state) { // NOLINT non-const reference |
| 300 | auto integers = RandomIntegers(); |
nothing calls this directly
no test coverage detected