##// END OF EJS Templates
Inits unit tests for spectrograms
Alexandre Leroux -
r970:07bd21071758
parent child
Show More
@@ -1,6 +1,7
1 1 #include "AmdaResultParser.h"
2 2
3 3 #include <Data/ScalarSeries.h>
4 #include <Data/SpectrogramSeries.h>
4 5 #include <Data/VectorSeries.h>
5 6
6 7 #include <QObject>
@@ -167,6 +168,7 struct ExpectedResults {
167 168 } // namespace
168 169
169 170 Q_DECLARE_METATYPE(ExpectedResults<ScalarSeries>)
171 Q_DECLARE_METATYPE(ExpectedResults<SpectrogramSeries>)
170 172 Q_DECLARE_METATYPE(ExpectedResults<VectorSeries>)
171 173
172 174 class TestAmdaResultParser : public QObject {
@@ -210,6 +212,13 private slots:
210 212 void testReadScalarTxt();
211 213
212 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 222 /// @sa testReadVectorTxt()
214 223 void testReadVectorTxt_data();
215 224
@@ -314,6 +323,21 void TestAmdaResultParser::testReadScalarTxt()
314 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 341 void TestAmdaResultParser::testReadVectorTxt_data()
318 342 {
319 343 testReadDataStructure<VectorSeries>();
General Comments 0
You need to be logged in to leave comments. Login now