| 997 | } |
| 998 | |
| 999 | void SearchCachedNFA(benchmark::State& state, const char* regexp, |
| 1000 | const StringPiece& text, Prog::Anchor anchor, |
| 1001 | bool expect_match) { |
| 1002 | Prog* prog = GetCachedProg(regexp); |
| 1003 | for (auto _ : state) { |
| 1004 | CHECK_EQ(prog->SearchNFA(text, StringPiece(), anchor, Prog::kFirstMatch, |
| 1005 | NULL, 0), |
| 1006 | expect_match); |
| 1007 | } |
| 1008 | } |
| 1009 | |
| 1010 | void SearchCachedOnePass(benchmark::State& state, const char* regexp, |
| 1011 | const StringPiece& text, Prog::Anchor anchor, |
nothing calls this directly
no test coverage detected