##// END OF EJS Templates
Adds initial test case
Alexandre Leroux -
r1210:be0b9c5e4602
parent child
Show More
@@ -2,6 +2,8
2 2 #include "FuzzingOperations.h"
3 3 #include "FuzzingUtils.h"
4 4
5 #include "AmdaProvider.h"
6
5 7 #include <Network/NetworkController.h>
6 8 #include <SqpApplication.h>
7 9 #include <Time/TimeController.h>
@@ -94,7 +96,7 public:
94 96 void execute()
95 97 {
96 98 qCInfo(LOG_TestAmdaFuzzing()) << "Running" << nbMaxOperations() << "operations on"
97 << nbMaxVariables() << "variables...";
99 << nbMaxVariables() << "variable(s)...";
98 100
99 101 auto canExecute = true;
100 102 for (auto i = 0; i < nbMaxOperations() && canExecute; ++i) {
@@ -177,7 +179,17 void TestAmdaFuzzing::testFuzzing_data()
177 179 // Test cases //
178 180 // ////////// //
179 181
180 ///@todo: complete
182 auto maxRange = SqpRange::fromDateTime({2017, 1, 1}, {0, 0}, {2017, 1, 5}, {0, 0});
183 MetadataPool metadataPool{{{"dataType", "vector"}, {"xml:id", "imf"}}};
184
185 // Note: we don't use auto here as we want to pass std::shared_ptr<IDataProvider> as is in the
186 // QVariant
187 std::shared_ptr<IDataProvider> provider = std::make_shared<AmdaProvider>();
188
189 QTest::newRow("fuzzingTest") << Properties{
190 {MAX_RANGE_PROPERTY, QVariant::fromValue(maxRange)},
191 {METADATA_POOL_PROPERTY, QVariant::fromValue(metadataPool)},
192 {PROVIDER_PROPERTY, QVariant::fromValue(provider)}};
181 193 }
182 194
183 195 void TestAmdaFuzzing::testFuzzing()
General Comments 0
You need to be logged in to leave comments. Login now