| 1271 | } |
| 1272 | |
| 1273 | void Parse1CachedOnePass(benchmark::State& state, const char* regexp, |
| 1274 | const StringPiece& text) { |
| 1275 | Prog* prog = GetCachedProg(regexp); |
| 1276 | CHECK(prog->IsOnePass()); |
| 1277 | StringPiece sp[2]; // 2 because sp[0] is whole match. |
| 1278 | for (auto _ : state) { |
| 1279 | CHECK(prog->SearchOnePass(text, text, Prog::kAnchored, Prog::kFullMatch, sp, 2)); |
| 1280 | } |
| 1281 | } |
| 1282 | |
| 1283 | void Parse1CachedBitState(benchmark::State& state, const char* regexp, |
| 1284 | const StringPiece& text) { |
nothing calls this directly
no test coverage detected