2017-04-27 18:21:27 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
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
|
|
|
|
2018-07-25 19:39:04 +00:00
|
|
|
class TestParse : public QObject {
|
2015-03-10 21:27:14 +00:00
|
|
|
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();
|
2017-11-26 08:48:03 +00:00
|
|
|
void testParseDM5();
|
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
|
|
|
|
2017-03-14 04:58:59 +00:00
|
|
|
int parseCSVmanual(int, std::string);
|
|
|
|
void exportCSVDiveDetails();
|
2017-05-09 19:28:04 +00:00
|
|
|
int parseCSVprofile(int, std::string);
|
|
|
|
void exportCSVDiveProfile();
|
2017-05-04 19:10:35 +00:00
|
|
|
void exportUDDF();
|
2017-03-14 04:58:59 +00:00
|
|
|
void testExport();
|
|
|
|
|
2018-01-06 19:16:53 +00:00
|
|
|
void parseDL7();
|
|
|
|
|
2017-03-04 15:06:52 +00:00
|
|
|
private:
|
|
|
|
sqlite3 *_sqlite3_handle = NULL;
|
2015-03-10 21:27:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|