| 1281 | } |
| 1282 | |
| 1283 | void Parse1CachedBitState(benchmark::State& state, const char* regexp, |
| 1284 | const StringPiece& text) { |
| 1285 | Prog* prog = GetCachedProg(regexp); |
| 1286 | CHECK(prog->CanBitState()); |
| 1287 | StringPiece sp[2]; // 2 because sp[0] is whole match. |
| 1288 | for (auto _ : state) { |
| 1289 | CHECK(prog->SearchBitState(text, text, Prog::kAnchored, Prog::kFullMatch, sp, 2)); |
| 1290 | } |
| 1291 | } |
| 1292 | |
| 1293 | void Parse1CachedBacktrack(benchmark::State& state, const char* regexp, |
| 1294 | const StringPiece& text) { |
nothing calls this directly
no test coverage detected