##// END OF EJS Templates
Implements validation of variable's data (1)...
Implements validation of variable's data (1) Creates helper used to validate data, depending on the server set at compile time

File last commit:

r1195:6bf9a231f6d8
r1198:077a4fb03e91
Show More
FuzzingDefs.h
65 lines | 1.5 KiB | text/x-c | CLexer
Alexandre Leroux
Adds variable controller and properties to test structure...
r1169 #ifndef SCIQLOP_FUZZINGDEFS_H
#define SCIQLOP_FUZZINGDEFS_H
Alexandre Leroux
Defines VariableState struct (1)...
r1187 #include <Data/SqpRange.h>
Alexandre Leroux
Adds "number of operations" and "number of variables" properties for the tests
r1170 #include <QString>
Alexandre Leroux
Implements "Variable creation" operation (1)...
r1176 #include <QVariantHash>
Alexandre Leroux
Defines VariableState struct (1)...
r1187 #include <memory>
Alexandre Leroux
Adds variable controller and properties to test structure...
r1169 // /////// //
// Aliases //
// /////// //
Alexandre Leroux
Implements "Variable creation" operation (1)...
r1176 using MetadataPool = std::vector<QVariantHash>;
Q_DECLARE_METATYPE(MetadataPool)
Alexandre Leroux
Adds variable controller and properties to test structure...
r1169 using Properties = QVariantHash;
Alexandre Leroux
Adds "number of operations" and "number of variables" properties for the tests
r1170 // ///////// //
// Constants //
// ///////// //
/// Max number of operations to generate
extern const QString NB_MAX_OPERATIONS_PROPERTY;
/// Max number of variables to manipulate through operations
extern const QString NB_MAX_VARIABLES_PROPERTY;
Alexandre Leroux
Defines operations pool...
r1173 /// Set of operations available for the test
extern const QString AVAILABLE_OPERATIONS_PROPERTY;
Alexandre Leroux
Adds the ability to set cache tolerance for tests
r1191 /// Tolerance used for variable's cache (in ratio)
extern const QString CACHE_TOLERANCE_PROPERTY;
Alexandre Leroux
Some fixes...
r1190
/// Range with which the timecontroller is initialized
extern const QString INITIAL_RANGE_PROPERTY;
Alexandre Leroux
Completes fuzzing test structure by setting initial range for the time controller
r1178 /// Max range that an operation can reach
extern const QString MAX_RANGE_PROPERTY;
Alexandre Leroux
Implements "Variable creation" operation (1)...
r1176 /// Set of metadata that can be associated to a variable
extern const QString METADATA_POOL_PROPERTY;
/// Provider used to retrieve data
extern const QString PROVIDER_PROPERTY;
Alexandre Leroux
Implements move operations (3)...
r1186 /// Time left for an operation to execute
extern const QString OPERATION_DELAY_PROPERTY;
Alexandre Leroux
Adds validators to the fuzzing test...
r1195 /// Validators used to validate an operation
extern const QString VALIDATORS_PROPERTY;
Alexandre Leroux
Defines VariableState struct (1)...
r1187
// /////// //
// Structs //
// /////// //
class Variable;
struct VariableState {
std::shared_ptr<Variable> m_Variable{nullptr};
SqpRange m_Range{INVALID_RANGE};
};
Alexandre Leroux
Adds variable controller and properties to test structure...
r1169 #endif // SCIQLOP_FUZZINGDEFS_H