| 1146 | } |
| 1147 | |
| 1148 | void Parse3CachedOnePass(benchmark::State& state, const char* regexp, |
| 1149 | const StringPiece& text) { |
| 1150 | Prog* prog = GetCachedProg(regexp); |
| 1151 | CHECK(prog->IsOnePass()); |
| 1152 | StringPiece sp[4]; // 4 because sp[0] is whole match. |
| 1153 | for (auto _ : state) { |
| 1154 | CHECK(prog->SearchOnePass(text, text, Prog::kAnchored, Prog::kFullMatch, sp, 4)); |
| 1155 | } |
| 1156 | } |
| 1157 | |
| 1158 | void Parse3CachedBitState(benchmark::State& state, const char* regexp, |
| 1159 | const StringPiece& text) { |
nothing calls this directly
no test coverage detected