| 268 | } |
| 269 | |
| 270 | static void ErrorSchemeNoErrorNoInline( |
| 271 | benchmark::State& state) { // NOLINT non-const reference |
| 272 | auto integers = RandomIntegers(); |
| 273 | |
| 274 | for (auto _ : state) { |
| 275 | int64_t total = 0; |
| 276 | for (const auto v : integers) { |
| 277 | total = Accumulate(total, NoErrorNoInline(v)); |
| 278 | } |
| 279 | benchmark::DoNotOptimize(total); |
| 280 | } |
| 281 | |
| 282 | state.SetItemsProcessed(state.iterations() * integers.size()); |
| 283 | } |
| 284 | |
| 285 | static void ErrorSchemeBool(benchmark::State& state) { // NOLINT non-const reference |
| 286 | auto integers = RandomIntegers(); |
nothing calls this directly
no test coverage detected