FuzzingValidators.h
21 lines
| 584 B
| text/x-c
|
CLexer
|
r1226 | #ifndef SCIQLOP_FUZZINGVALIDATORS_H | ||
#define SCIQLOP_FUZZINGVALIDATORS_H | ||||
#include <QLoggingCategory> | ||||
Q_DECLARE_LOGGING_CATEGORY(LOG_FuzzingValidators) | ||||
class VariableState; | ||||
/** | ||||
* Struct that represents a validator. A validator checks if the state of a variable is valid at the | ||||
* moment it is called during a fuzzing test | ||||
*/ | ||||
struct IFuzzingValidator { | ||||
virtual ~IFuzzingValidator() noexcept = default; | ||||
/// Validates the variable's state passed in parameter | ||||
virtual void validate(const VariableState &variableState) const = 0; | ||||
}; | ||||
#endif // SCIQLOP_FUZZINGVALIDATORS_H | ||||