2017-04-27 20:21:27 +02:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2015-03-10 14:27:14 -07:00
|
|
|
#ifndef TESTPARSE_H
|
|
|
|
#define TESTPARSE_H
|
|
|
|
|
|
|
|
#include <QtTest>
|
2017-03-04 22:06:52 +07:00
|
|
|
#include <sqlite3.h>
|
2015-03-10 14:27:14 -07:00
|
|
|
|
2018-07-25 12:39:04 -07:00
|
|
|
class TestParse : public QObject {
|
2015-03-10 14:27:14 -07:00
|
|
|
Q_OBJECT
|
|
|
|
private slots:
|
2016-12-27 13:31:30 +01:00
|
|
|
void initTestCase();
|
2017-03-04 22:06:52 +07:00
|
|
|
void init();
|
|
|
|
void cleanup();
|
|
|
|
|
2017-03-13 21:53:44 +02:00
|
|
|
int parseCSV(int, std::string);
|
2017-03-04 22:06:52 +07:00
|
|
|
int parseDivingLog();
|
|
|
|
int parseV2NoQuestion();
|
|
|
|
int parseV3();
|
|
|
|
void testParse();
|
|
|
|
|
2015-07-26 15:08:11 +03:00
|
|
|
void testParseDM4();
|
2017-11-26 10:48:03 +02:00
|
|
|
void testParseDM5();
|
2015-07-27 16:13:33 +03:00
|
|
|
void testParseHUDC();
|
2015-07-28 07:36:30 +03:00
|
|
|
void testParseNewFormat();
|
2015-09-13 21:30:25 +03:00
|
|
|
void testParseDLD();
|
2017-02-09 22:16:08 -08:00
|
|
|
void testParseMerge();
|
2017-03-04 22:06:52 +07:00
|
|
|
|
2017-03-14 06:58:59 +02:00
|
|
|
int parseCSVmanual(int, std::string);
|
2020-05-24 16:50:56 +03:00
|
|
|
void exportSubsurfaceCSV();
|
2017-03-14 06:58:59 +02:00
|
|
|
void exportCSVDiveDetails();
|
2017-05-09 22:28:04 +03:00
|
|
|
int parseCSVprofile(int, std::string);
|
|
|
|
void exportCSVDiveProfile();
|
2017-05-04 22:10:35 +03:00
|
|
|
void exportUDDF();
|
2017-03-14 06:58:59 +02:00
|
|
|
void testExport();
|
|
|
|
|
2018-01-06 21:16:53 +02:00
|
|
|
void parseDL7();
|
|
|
|
|
2017-03-04 22:06:52 +07:00
|
|
|
private:
|
|
|
|
sqlite3 *_sqlite3_handle = NULL;
|
2015-03-10 14:27:14 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|