MCPcopy Create free account
hub / github.com/KDE/labplot / initTestCase

Method initTestCase

tests/import_export/SQL/ImportSqlDatabaseTest.cpp:21–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19#include <QSqlRecord>
20
21void ImportSqlDatabaseTest::initTestCase() {
22 CommonMetaTest::initTestCase();
23
24 // prepare the database connection
25 QString m_configPath(QStandardPaths::standardLocations(QStandardPaths::AppDataLocation).constFirst() + QStringLiteral("sql_connections"));
26 KConfig config(m_configPath, KConfig::SimpleConfig);
27 KConfigGroup group = config.group(QStringLiteral("chinook"));
28 group.writeEntry("Driver", QStringLiteral("QSQLITE"));
29 group.writeEntry("DatabaseName", QFINDTESTDATA(QLatin1String("data/chinook.db")));
30}
31
32// ##############################################################################
33// ######################## import from a table ################################

Callers

nothing calls this directly

Calls 1

groupMethod · 0.45

Tested by

no test coverage detected