@@ -1,6 +1,7 | |||||
1 | #include "AmdaResultParser.h" |
|
1 | #include "AmdaResultParser.h" | |
2 |
|
2 | |||
3 | #include <Data/ScalarSeries.h> |
|
3 | #include <Data/ScalarSeries.h> | |
|
4 | #include <Data/SpectrogramSeries.h> | |||
4 | #include <Data/VectorSeries.h> |
|
5 | #include <Data/VectorSeries.h> | |
5 |
|
6 | |||
6 | #include <QObject> |
|
7 | #include <QObject> | |
@@ -167,6 +168,7 struct ExpectedResults { | |||||
167 | } // namespace |
|
168 | } // namespace | |
168 |
|
169 | |||
169 | Q_DECLARE_METATYPE(ExpectedResults<ScalarSeries>) |
|
170 | Q_DECLARE_METATYPE(ExpectedResults<ScalarSeries>) | |
|
171 | Q_DECLARE_METATYPE(ExpectedResults<SpectrogramSeries>) | |||
170 | Q_DECLARE_METATYPE(ExpectedResults<VectorSeries>) |
|
172 | Q_DECLARE_METATYPE(ExpectedResults<VectorSeries>) | |
171 |
|
173 | |||
172 | class TestAmdaResultParser : public QObject { |
|
174 | class TestAmdaResultParser : public QObject { | |
@@ -210,6 +212,13 private slots: | |||||
210 | void testReadScalarTxt(); |
|
212 | void testReadScalarTxt(); | |
211 |
|
213 | |||
212 | /// Input test data |
|
214 | /// Input test data | |
|
215 | /// @sa testReadSpectrogramTxt() | |||
|
216 | void testReadSpectrogramTxt_data(); | |||
|
217 | ||||
|
218 | /// Tests parsing spectrogram series of a TXT file | |||
|
219 | void testReadSpectrogramTxt(); | |||
|
220 | ||||
|
221 | /// Input test data | |||
213 | /// @sa testReadVectorTxt() |
|
222 | /// @sa testReadVectorTxt() | |
214 | void testReadVectorTxt_data(); |
|
223 | void testReadVectorTxt_data(); | |
215 |
|
224 | |||
@@ -314,6 +323,21 void TestAmdaResultParser::testReadScalarTxt() | |||||
314 | testRead<ScalarSeries>(AmdaResultParser::ValueType::SCALAR); |
|
323 | testRead<ScalarSeries>(AmdaResultParser::ValueType::SCALAR); | |
315 | } |
|
324 | } | |
316 |
|
325 | |||
|
326 | void TestAmdaResultParser::testReadSpectrogramTxt_data() | |||
|
327 | { | |||
|
328 | testReadDataStructure<SpectrogramSeries>(); | |||
|
329 | ||||
|
330 | // ////////// // | |||
|
331 | // Test cases // | |||
|
332 | // ////////// // | |||
|
333 | ||||
|
334 | } | |||
|
335 | ||||
|
336 | void TestAmdaResultParser::testReadSpectrogramTxt() | |||
|
337 | { | |||
|
338 | testRead<SpectrogramSeries>(AmdaResultParser::ValueType::SPECTROGRAM); | |||
|
339 | } | |||
|
340 | ||||
317 | void TestAmdaResultParser::testReadVectorTxt_data() |
|
341 | void TestAmdaResultParser::testReadVectorTxt_data() | |
318 | { |
|
342 | { | |
319 | testReadDataStructure<VectorSeries>(); |
|
343 | testReadDataStructure<VectorSeries>(); |
General Comments 0
You need to be logged in to leave comments.
Login now