Add support for capturing group test cases

This enables unit tests to compare the matching groups as well,
not just binary match-no match.
This commit is contained in:
WGH
2019-01-22 22:48:31 +03:00
committed by Felipe Zimmerle
parent 22136788c8
commit cce85c4d31
3 changed files with 79 additions and 4 deletions

View File

@@ -42,6 +42,10 @@ class UnitTest {
int obtained;
int skipped;
std::string obtainedOutput;
// for regular expression operator tests
std::vector<std::string> re_groups;
std::vector<std::string> obtained_re_groups;
};
} // namespace modsecurity_test