| 688 | } |
| 689 | |
| 690 | void CompileRegexp(benchmark::State& state, const std::string& regexp) { |
| 691 | for (auto _ : state) { |
| 692 | Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); |
| 693 | CHECK(re); |
| 694 | Prog* prog = re->CompileToProg(0); |
| 695 | CHECK(prog); |
| 696 | delete prog; |
| 697 | re->Decref(); |
| 698 | } |
| 699 | } |
| 700 | |
| 701 | void CompileToProg(benchmark::State& state, const std::string& regexp) { |
| 702 | Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); |
nothing calls this directly
no test coverage detected