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

Method initTestCase

plugins/cmake/tests/test_cmakeserver.cpp:34–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32
33private Q_SLOTS:
34 void initTestCase()
35 {
36 const auto exe = CMake::findExecutable();
37 QVERIFY(!exe.isEmpty());
38 const auto versionStr = CMake::cmakeExecutableVersion(exe);
39 QVERIFY(!versionStr.isEmpty());
40 const auto version = QVersionNumber::fromString(versionStr);
41 QVERIFY(!version.isNull());
42 const bool versionWithServer = (version >= QVersionNumber(3, 8) && version < QVersionNumber(3, 20));
43 if (!versionWithServer)
44 QSKIP("cmake server not supported");
45 }
46
47 void testRun()
48 {

Callers

nothing calls this directly

Calls 4

cmakeExecutableVersionFunction · 0.85
isNullMethod · 0.80
findExecutableFunction · 0.50
isEmptyMethod · 0.45

Tested by

no test coverage detected