@@ -82,21 +82,21 const auto AVAILABLE_OPERATIONS_DEFAULT_VALUE = QVariant::fromValue( | |||||
82 | {FuzzingOperationType::DELETE, {0.0}}, // Delete operation is less frequent |
|
82 | {FuzzingOperationType::DELETE, {0.0}}, // Delete operation is less frequent | |
83 | {FuzzingOperationType::PAN_LEFT, {1.}}, |
|
83 | {FuzzingOperationType::PAN_LEFT, {1.}}, | |
84 | {FuzzingOperationType::PAN_RIGHT, {1.}}, |
|
84 | {FuzzingOperationType::PAN_RIGHT, {1.}}, | |
85 |
{FuzzingOperationType::ZOOM_IN, { |
|
85 | {FuzzingOperationType::ZOOM_IN, {0.}}, | |
86 |
{FuzzingOperationType::ZOOM_OUT, { |
|
86 | {FuzzingOperationType::ZOOM_OUT, {0.}}, | |
87 | {FuzzingOperationType::SYNCHRONIZE, {4000.0}}, |
|
87 | {FuzzingOperationType::SYNCHRONIZE, {4000.0}}, | |
88 | {FuzzingOperationType::DESYNCHRONIZE, {0.4}}}); |
|
88 | {FuzzingOperationType::DESYNCHRONIZE, {0.4}}}); | |
89 | const auto CACHE_TOLERANCE_DEFAULT_VALUE = 0.2; |
|
89 | const auto CACHE_TOLERANCE_DEFAULT_VALUE = 0.2; | |
90 |
|
90 | |||
91 | /// Min/max delays between each operation (in ms) |
|
91 | /// Min/max delays between each operation (in ms) | |
92 |
const auto OPERATION_DELAY_BOUNDS_DEFAULT_VALUE = QVariant::fromValue(std::make_pair( |
|
92 | const auto OPERATION_DELAY_BOUNDS_DEFAULT_VALUE = QVariant::fromValue(std::make_pair(20, 20)); | |
93 |
|
93 | |||
94 | /// Validators for the tests (executed in the order in which they're defined) |
|
94 | /// Validators for the tests (executed in the order in which they're defined) | |
95 | const auto VALIDATORS_DEFAULT_VALUE = QVariant::fromValue( |
|
95 | const auto VALIDATORS_DEFAULT_VALUE = QVariant::fromValue( | |
96 | ValidatorsTypes{{FuzzingValidatorType::RANGE, FuzzingValidatorType::DATA}}); |
|
96 | ValidatorsTypes{{FuzzingValidatorType::RANGE, FuzzingValidatorType::DATA}}); | |
97 |
|
97 | |||
98 | /// Min/max number of operations to execute before calling validation |
|
98 | /// Min/max number of operations to execute before calling validation | |
99 |
const auto VALIDATION_FREQUENCY_BOUNDS_DEFAULT_VALUE = QVariant::fromValue(std::make_pair( |
|
99 | const auto VALIDATION_FREQUENCY_BOUNDS_DEFAULT_VALUE = QVariant::fromValue(std::make_pair(2, 2)); | |
100 |
|
100 | |||
101 |
|
101 | |||
102 | // /////// ////// |
|
102 | // /////// ////// | |
@@ -214,22 +214,8 const QVariant CUSTOM_CASE_TWO =QVariant::fromValue(CustomVariablesOperations{{{ | |||||
214 | {{0, op(FuzzingOperationType::SYNCHRONIZE)}}, |
|
214 | {{0, op(FuzzingOperationType::SYNCHRONIZE)}}, | |
215 | {{1, op(FuzzingOperationType::CREATE)}, true}, |
|
215 | {{1, op(FuzzingOperationType::CREATE)}, true}, | |
216 | {{1, op(FuzzingOperationType::SYNCHRONIZE)}}, |
|
216 | {{1, op(FuzzingOperationType::SYNCHRONIZE)}}, | |
217 | {{0, op(FuzzingOperationType::ZOOM_IN)}}, |
|
|||
218 | {{1, op(FuzzingOperationType::ZOOM_IN)}}, |
|
|||
219 | {{0, op(FuzzingOperationType::ZOOM_IN)}}, |
|
|||
220 | {{1, op(FuzzingOperationType::ZOOM_OUT)}}, |
|
|||
221 | {{0, op(FuzzingOperationType::ZOOM_OUT)}}, |
|
|||
222 | {{1, op(FuzzingOperationType::ZOOM_OUT)}}, |
|
217 | {{1, op(FuzzingOperationType::ZOOM_OUT)}}, | |
223 | {{0, op(FuzzingOperationType::ZOOM_IN)}}, |
|
|||
224 | {{1, op(FuzzingOperationType::ZOOM_OUT)}}, |
|
|||
225 | {{0, op(FuzzingOperationType::ZOOM_IN)}}, |
|
|||
226 | {{0, op(FuzzingOperationType::ZOOM_OUT)}}, |
|
|||
227 | {{1, op(FuzzingOperationType::ZOOM_IN)}}, |
|
|||
228 | {{0, op(FuzzingOperationType::ZOOM_IN)}}, |
|
|||
229 | {{0, op(FuzzingOperationType::ZOOM_OUT)}}, |
|
|||
230 | {{1, op(FuzzingOperationType::ZOOM_IN)}}, |
|
218 | {{1, op(FuzzingOperationType::ZOOM_IN)}}, | |
231 | {{0, op(FuzzingOperationType::ZOOM_IN)}}, |
|
|||
232 | {{0, op(FuzzingOperationType::ZOOM_OUT)}}, |
|
|||
233 | }); |
|
219 | }); | |
234 |
|
220 | |||
235 | // /////// // |
|
221 | // /////// // | |
@@ -478,7 +464,7 void TestAmdaFuzzing::testFuzzing_data() | |||||
478 | // Test cases // |
|
464 | // Test cases // | |
479 | // ////////// // |
|
465 | // ////////// // | |
480 |
|
466 | |||
481 |
auto maxRange = SqpRange::fromDateTime({2017, 1, |
|
467 | auto maxRange = SqpRange::fromDateTime({2017, 1, 3}, {0, 0}, {2017, 1, 5}, {0, 0}); | |
482 | MetadataPool metadataPool{{{"dataType", "vector"}, {"xml:id", "c1_b"}}}; |
|
468 | MetadataPool metadataPool{{{"dataType", "vector"}, {"xml:id", "c1_b"}}}; | |
483 |
|
469 | |||
484 | // Note: we don't use auto here as we want to pass std::shared_ptr<IDataProvider> as is in the |
|
470 | // Note: we don't use auto here as we want to pass std::shared_ptr<IDataProvider> as is in the | |
@@ -500,7 +486,7 void TestAmdaFuzzing::testFuzzing_data() | |||||
500 | {CUSTOM_OPERATIONS_PROPERTY, CUSTOM_CASE_TWO}}; |
|
486 | {CUSTOM_OPERATIONS_PROPERTY, CUSTOM_CASE_TWO}}; | |
501 |
|
487 | |||
502 |
|
488 | |||
503 |
|
|
489 | //// Fuzzing | |
504 | // QTest::newRow("fuzzingTest") << Properties{ |
|
490 | // QTest::newRow("fuzzingTest") << Properties{ | |
505 | // {MAX_RANGE_PROPERTY, QVariant::fromValue(maxRange)}, |
|
491 | // {MAX_RANGE_PROPERTY, QVariant::fromValue(maxRange)}, | |
506 | // {METADATA_POOL_PROPERTY, QVariant::fromValue(metadataPool)}, |
|
492 | // {METADATA_POOL_PROPERTY, QVariant::fromValue(metadataPool)}, |
General Comments 0
You need to be logged in to leave comments.
Login now