| 1136 | } |
| 1137 | |
| 1138 | void Parse3CachedNFA(benchmark::State& state, const char* regexp, |
| 1139 | const StringPiece& text) { |
| 1140 | Prog* prog = GetCachedProg(regexp); |
| 1141 | StringPiece sp[4]; // 4 because sp[0] is whole match. |
| 1142 | for (auto _ : state) { |
| 1143 | CHECK(prog->SearchNFA(text, StringPiece(), Prog::kAnchored, |
| 1144 | Prog::kFullMatch, sp, 4)); |
| 1145 | } |
| 1146 | } |
| 1147 | |
| 1148 | void Parse3CachedOnePass(benchmark::State& state, const char* regexp, |
| 1149 | const StringPiece& text) { |
nothing calls this directly
no test coverage detected