Auto status change to "Under Review"
@@ -35,8 +35,8 struct CreateOperation : public IFuzzingOperation { | |||||
35 | = properties.value(PROVIDER_PROPERTY).value<std::shared_ptr<IDataProvider> >(); |
|
35 | = properties.value(PROVIDER_PROPERTY).value<std::shared_ptr<IDataProvider> >(); | |
36 |
|
36 | |||
37 | auto variableName = QString{"Var_%1"}.arg(QUuid::createUuid().toString()); |
|
37 | auto variableName = QString{"Var_%1"}.arg(QUuid::createUuid().toString()); | |
38 | qCInfo(LOG_FuzzingOperations()).noquote() |
|
38 | qCInfo(LOG_FuzzingOperations()).noquote() << "Creating variable" << variableName | |
39 |
|
|
39 | << "(metadata:" << variableMetadata << ")..."; | |
40 |
|
40 | |||
41 | auto newVariable |
|
41 | auto newVariable | |
42 | = variableController.createVariable(variableName, variableMetadata, variableProvider); |
|
42 | = variableController.createVariable(variableName, variableMetadata, variableProvider); | |
@@ -60,8 +60,8 struct DeleteOperation : public IFuzzingOperation { | |||||
60 | { |
|
60 | { | |
61 | auto &variableState = fuzzingState.variableState(variableId); |
|
61 | auto &variableState = fuzzingState.variableState(variableId); | |
62 |
|
62 | |||
63 | qCInfo(LOG_FuzzingOperations()).noquote() |
|
63 | qCInfo(LOG_FuzzingOperations()).noquote() << "Deleting variable" | |
64 |
|
|
64 | << variableState.m_Variable->name() << "..."; | |
65 | variableController.deleteVariable(variableState.m_Variable); |
|
65 | variableController.deleteVariable(variableState.m_Variable); | |
66 |
|
66 | |||
67 | // Updates variable's state |
|
67 | // Updates variable's state | |
@@ -139,9 +139,9 struct MoveOperation : public IFuzzingOperation { | |||||
139 | auto isSynchronized = !fuzzingState.syncGroupId(variableId).isNull(); |
|
139 | auto isSynchronized = !fuzzingState.syncGroupId(variableId).isNull(); | |
140 | auto newVariableRange = SqpRange{m_RangeStartMoveFun(variableRange.m_TStart, delta), |
|
140 | auto newVariableRange = SqpRange{m_RangeStartMoveFun(variableRange.m_TStart, delta), | |
141 | m_RangeEndMoveFun(variableRange.m_TEnd, delta)}; |
|
141 | m_RangeEndMoveFun(variableRange.m_TEnd, delta)}; | |
142 | qCInfo(LOG_FuzzingOperations()).noquote() |
|
142 | qCInfo(LOG_FuzzingOperations()).noquote() << "Performing" << m_Label << "on" | |
143 |
|
|
143 | << variable->name() << "(from" << variableRange | |
144 | << "to" << newVariableRange << ")..."; |
|
144 | << "to" << newVariableRange << ")..."; | |
145 | variableController.onRequestDataLoading({variable}, newVariableRange, isSynchronized); |
|
145 | variableController.onRequestDataLoading({variable}, newVariableRange, isSynchronized); | |
146 |
|
146 | |||
147 | // Updates state |
|
147 | // Updates state | |
@@ -169,9 +169,9 struct SynchronizeOperation : public IFuzzingOperation { | |||||
169 |
|
169 | |||
170 | // Chooses a random synchronization group and adds the variable into sync group |
|
170 | // Chooses a random synchronization group and adds the variable into sync group | |
171 | auto syncGroupId = RandomGenerator::instance().randomChoice(fuzzingState.syncGroupsIds()); |
|
171 | auto syncGroupId = RandomGenerator::instance().randomChoice(fuzzingState.syncGroupsIds()); | |
172 | qCInfo(LOG_FuzzingOperations()).noquote() |
|
172 | qCInfo(LOG_FuzzingOperations()).noquote() << "Adding" << variableState.m_Variable->name() | |
173 | << "Adding" << variableState.m_Variable->name() << "into synchronization group" |
|
173 | << "into synchronization group" << syncGroupId | |
174 | << syncGroupId << "..."; |
|
174 | << "..."; | |
175 | variableController.onAddSynchronized(variableState.m_Variable, syncGroupId); |
|
175 | variableController.onAddSynchronized(variableState.m_Variable, syncGroupId); | |
176 |
|
176 | |||
177 | // Updates state |
|
177 | // Updates state | |
@@ -194,9 +194,9 struct DesynchronizeOperation : public IFuzzingOperation { | |||||
194 | // Gets the sync group of the variable |
|
194 | // Gets the sync group of the variable | |
195 | auto syncGroupId = fuzzingState.syncGroupId(variableId); |
|
195 | auto syncGroupId = fuzzingState.syncGroupId(variableId); | |
196 |
|
196 | |||
197 | qCInfo(LOG_FuzzingOperations()).noquote() |
|
197 | qCInfo(LOG_FuzzingOperations()).noquote() << "Removing" << variableState.m_Variable->name() | |
198 | << "Removing" << variableState.m_Variable->name() << "from synchronization group" |
|
198 | << "from synchronization group" << syncGroupId | |
199 | << syncGroupId << "..."; |
|
199 | << "..."; | |
200 | variableController.onAddSynchronized(variableState.m_Variable, syncGroupId); |
|
200 | variableController.onAddSynchronized(variableState.m_Variable, syncGroupId); | |
201 |
|
201 | |||
202 | // Updates state |
|
202 | // Updates state |
@@ -76,8 +76,8 public: | |||||
76 | // - there is at least one data |
|
76 | // - there is at least one data | |
77 | // - the data are consistent (no data holes) |
|
77 | // - the data are consistent (no data holes) | |
78 | if (std::distance(dataIts.first, dataIts.second) == 0) { |
|
78 | if (std::distance(dataIts.first, dataIts.second) == 0) { | |
79 | qCInfo(LOG_FuzzingValidators()).noquote() |
|
79 | qCInfo(LOG_FuzzingValidators()).noquote() << message | |
80 |
|
|
80 | << "FAIL: the variable has no data"; | |
81 | QFAIL(""); |
|
81 | QFAIL(""); | |
82 | } |
|
82 | } | |
83 |
|
83 | |||
@@ -171,9 +171,9 void validateRange(std::shared_ptr<Variable> variable, const SqpRange &expectedR | |||||
171 | qCInfo(LOG_FuzzingValidators()).noquote() << message << "OK"; |
|
171 | qCInfo(LOG_FuzzingValidators()).noquote() << message << "OK"; | |
172 | } |
|
172 | } | |
173 | else { |
|
173 | else { | |
174 | qCInfo(LOG_FuzzingValidators()).noquote() |
|
174 | qCInfo(LOG_FuzzingValidators()).noquote() << message << "FAIL (current range:" << range | |
175 | << message << "FAIL (current range:" << range |
|
175 | << ", expected range:" << expectedRange | |
176 | << ", expected range:" << expectedRange << ")"; |
|
176 | << ")"; | |
177 | QFAIL(""); |
|
177 | QFAIL(""); | |
178 | } |
|
178 | } | |
179 | }; |
|
179 | }; |
General Comments 3
Status change > Approved
You need to be logged in to leave comments.
Login now