| 419 | } |
| 420 | |
| 421 | static void ErrorSchemeExceptionNoInline( |
| 422 | benchmark::State& state) { // NOLINT non-const reference |
| 423 | auto integers = RandomIntegers(); |
| 424 | |
| 425 | for (auto _ : state) { |
| 426 | int64_t total = 0; |
| 427 | for (const auto v : integers) { |
| 428 | try { |
| 429 | total = Accumulate(total, ErrorAsExceptionNoInline(v)); |
| 430 | } catch (const std::exception&) { |
| 431 | } |
| 432 | } |
| 433 | benchmark::DoNotOptimize(total); |
| 434 | } |
| 435 | |
| 436 | state.SetItemsProcessed(state.iterations() * integers.size()); |
| 437 | } |
| 438 | |
| 439 | // ---------------------------------------------------------------------- |
| 440 | // FieldPath::Get benchmarks |
nothing calls this directly
no test coverage detected