| 44 | } |
| 45 | |
| 46 | std::vector<std::string> Expand(const std::vector<std::string>& base, size_t n) { |
| 47 | std::vector<std::string> result; |
| 48 | result.reserve(n); |
| 49 | |
| 50 | while (true) { |
| 51 | for (const auto& v : base) { |
| 52 | result.push_back(v); |
| 53 | if (result.size() == n) { |
| 54 | return result; |
| 55 | } |
| 56 | } |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | static void BenchmarkTrieLookups(benchmark::State& state, // NOLINT non-const reference |
| 61 | const std::vector<std::string>& strings) { |
no test coverage detected