2015-03-10 21:27:14 +00:00
|
|
|
#ifndef TESTPARSE_H
|
|
|
|
#define TESTPARSE_H
|
|
|
|
|
|
|
|
#include <QtTest>
|
2017-03-04 15:06:52 +00:00
|
|
|
#include <sqlite3.h>
|
2015-03-10 21:27:14 +00:00
|
|
|
|
|
|
|
class TestParse : public QObject{
|
|
|
|
Q_OBJECT
|
|
|
|
private slots:
|
2016-12-27 12:31:30 +00:00
|
|
|
void initTestCase();
|
2017-03-04 15:06:52 +00:00
|
|
|
void init();
|
|
|
|
void cleanup();
|
|
|
|
|
2017-03-13 19:53:44 +00:00
|
|
|
int parseCSV(int, std::string);
|
2017-03-04 15:06:52 +00:00
|
|
|
int parseDivingLog();
|
|
|
|
int parseV2NoQuestion();
|
|
|
|
int parseV3();
|
|
|
|
void testParse();
|
|
|
|
|
2015-07-26 12:08:11 +00:00
|
|
|
void testParseDM4();
|
2015-07-27 13:13:33 +00:00
|
|
|
void testParseHUDC();
|
2015-07-28 04:36:30 +00:00
|
|
|
void testParseNewFormat();
|
2015-09-13 18:30:25 +00:00
|
|
|
void testParseDLD();
|
2017-02-10 06:16:08 +00:00
|
|
|
void testParseMerge();
|
2017-03-04 15:06:52 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
sqlite3 *_sqlite3_handle = NULL;
|
2015-03-10 21:27:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|