subsurface/tests/testparse.h
Miika Turkia 75f3cb2027 Test case for multicylinder support on CSV import
Test for importing Subsurface generated CSV dive details, with multiple
cylinders support.

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2020-05-26 11:33:10 -07:00

42 lines
773 B
C++

// SPDX-License-Identifier: GPL-2.0
#ifndef TESTPARSE_H
#define TESTPARSE_H
#include <QtTest>
#include <sqlite3.h>
class TestParse : public QObject {
Q_OBJECT
private slots:
void initTestCase();
void init();
void cleanup();
int parseCSV(int, std::string);
int parseDivingLog();
int parseV2NoQuestion();
int parseV3();
void testParse();
void testParseDM4();
void testParseDM5();
void testParseHUDC();
void testParseNewFormat();
void testParseDLD();
void testParseMerge();
int parseCSVmanual(int, std::string);
void exportSubsurfaceCSV();
void exportCSVDiveDetails();
int parseCSVprofile(int, std::string);
void exportCSVDiveProfile();
void exportUDDF();
void testExport();
void parseDL7();
private:
sqlite3 *_sqlite3_handle = NULL;
};
#endif