subsurface/tests/testparse.h
Miika Turkia acd791b7c1 Export-import test for manual CSV
Note that the actual validation of the result is currently disabled, so
the tests will pass even though there are some bugs and rounding errors
present.

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-04-01 08:06:09 -07:00

34 lines
576 B
C++

#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 testParseHUDC();
void testParseNewFormat();
void testParseDLD();
void testParseMerge();
int parseCSVmanual(int, std::string);
void exportCSVDiveDetails();
void testExport();
private:
sqlite3 *_sqlite3_handle = NULL;
};
#endif