mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-17 09:55:28 +03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user