mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Cosmetic: Prints regression test results in a better shape
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
#include <yajl/yajl_tree.h>
|
||||
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
@@ -25,6 +26,7 @@
|
||||
|
||||
namespace modsecurity_test {
|
||||
|
||||
|
||||
class RegressionTest {
|
||||
public:
|
||||
static RegressionTest *from_yajl_node(const yajl_val &);
|
||||
@@ -71,6 +73,15 @@ class RegressionTest {
|
||||
std::string redirect_url;
|
||||
};
|
||||
|
||||
|
||||
class RegressionTestResult {
|
||||
public:
|
||||
bool passed;
|
||||
RegressionTest *test;
|
||||
std::stringstream reason;
|
||||
};
|
||||
|
||||
|
||||
} // namespace modsecurity_test
|
||||
|
||||
#endif // TEST_REGRESSION_REGRESSION_TEST_H_
|
||||
|
Reference in New Issue
Block a user