| 405 | } |
| 406 | |
| 407 | static void ErrorSchemeExceptionNoInline( |
| 408 | benchmark::State& state) { // NOLINT non-const reference |
| 409 | auto integers = RandomIntegers(); |
| 410 | |
| 411 | for (auto _ : state) { |
| 412 | int64_t total = 0; |
| 413 | for (const auto v : integers) { |
| 414 | try { |
| 415 | total = Accumulate(total, ErrorAsExceptionNoInline(v)); |
| 416 | } catch (const std::exception&) { |
| 417 | } |
| 418 | } |
| 419 | benchmark::DoNotOptimize(total); |
| 420 | } |
| 421 | |
| 422 | state.SetItemsProcessed(state.iterations() * integers.size()); |
| 423 | } |
| 424 | |
| 425 | // ---------------------------------------------------------------------- |
| 426 | // FieldPath::Get benchmarks |
nothing calls this directly
no test coverage detected