MCPcopy Create free account
hub / github.com/KDE/kdevelop / libTarget

Method libTarget

plugins/qmakemanager/tests/test_qmakefile.cpp:173–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173void TestQMakeFile::libTarget()
174{
175 QFETCH(QString, target);
176 QFETCH(QString, resolved);
177
178 QTemporaryFile tmpfile;
179 tmpfile.open();
180 QTextStream stream(&tmpfile);
181 stream << "TARGET = " << target << "\nTEMPLATE = lib\n";
182 stream.flush();
183 tmpfile.close();
184
185 QMakeProjectFile file(tmpfile.fileName());
186
187 const auto qmvars = setDefaultMKSpec(file);
188 if (qmvars.isEmpty()) {
189 QSKIP("Problem querying QMake, skipping test function");
190 }
191
192 QVERIFY(file.read());
193
194 QCOMPARE(file.targets(), QStringList() << resolved);
195}
196
197void TestQMakeFile::libTarget_data()
198{

Callers

nothing calls this directly

Calls 8

setDefaultMKSpecFunction · 0.85
QStringListClass · 0.85
openMethod · 0.45
closeMethod · 0.45
fileNameMethod · 0.45
isEmptyMethod · 0.45
readMethod · 0.45
targetsMethod · 0.45

Tested by

no test coverage detected