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