| 1008 | } |
| 1009 | |
| 1010 | void SearchCachedOnePass(benchmark::State& state, const char* regexp, |
| 1011 | const StringPiece& text, Prog::Anchor anchor, |
| 1012 | bool expect_match) { |
| 1013 | Prog* prog = GetCachedProg(regexp); |
| 1014 | CHECK(prog->IsOnePass()); |
| 1015 | for (auto _ : state) { |
| 1016 | CHECK_EQ(prog->SearchOnePass(text, text, anchor, Prog::kFirstMatch, NULL, 0), |
| 1017 | expect_match); |
| 1018 | } |
| 1019 | } |
| 1020 | |
| 1021 | void SearchCachedBitState(benchmark::State& state, const char* regexp, |
| 1022 | const StringPiece& text, Prog::Anchor anchor, |
nothing calls this directly
no test coverage detected