Home | History | Annotate | Download | only in testing

Lines Matching refs:regexp

9 #include "re2/regexp.h"
24 const char* regexp;
109 LOG(INFO) << "Checking regexp=" << CEscape(t.regexp);
110 Regexp* re = Regexp::Parse(t.regexp, Regexp::LikePerl, NULL);
115 << " " << t.regexp;
119 CHECK(RE2(t.regexp).PossibleMatchRange(&min, &max, t.maxlen));
121 EXPECT_EQ(t.min, min) << t.regexp;
122 EXPECT_EQ(t.max, max) << t.regexp;
156 // Fails because it's a malformed regexp.
164 // the regexp matches each of the strings.
181 void HandleRegexp(const string& regexp);
187 int tests_; // Number of regexp tests.
192 // Processes a single generated regexp.
194 void PossibleMatchTester::HandleRegexp(const string& regexp) {
197 VLOG(3) << CEscape(regexp);
199 RE2 re(regexp, RE2::Latin1);
207 if(strstr(regexp.c_str(), "\\C*"))
209 LOG(QFATAL) << "PossibleMatchRange failed on: " << CEscape(regexp);
218 CHECK_GE(s, min) << " regexp: " << regexp << " max: " << max;
219 CHECK_LE(s, max) << " regexp: " << regexp << " min: " << min;