MCPcopy Create free account
hub / github.com/MultiMC/Launcher / test_createShortcut_data

Method test_createShortcut_data

launcher/FileSystem_test.cpp:123–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121// FIXME: implement on windows, OSX, then test.
122#if defined(Q_OS_LINUX)
123 void test_createShortcut_data()
124 {
125 QTest::addColumn<QString>("location");
126 QTest::addColumn<QString>("dest");
127 QTest::addColumn<QStringList>("args");
128 QTest::addColumn<QString>("name");
129 QTest::addColumn<QString>("iconLocation");
130 QTest::addColumn<QByteArray>("result");
131
132 QTest::newRow("unix") << QDir::currentPath()
133 << "asdfDest"
134 << (QStringList() << "arg1" << "arg2")
135 << "asdf"
136 << QString()
137 #if defined(Q_OS_LINUX)
138 << GET_TEST_FILE("data/FileSystem-test_createShortcut-unix")
139 #elif defined(Q_OS_WIN)
140 << QByteArray()
141 #endif
142 ;
143 }
144
145 void test_createShortcut()
146 {

Callers

nothing calls this directly

Calls 2

QStringClass · 0.85
QByteArrayClass · 0.85

Tested by

no test coverage detected