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

Function findExecutable

plugins/debuggercommon/tests/testhelper.cpp:33–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31namespace KDevMI::Testing {
32
33QUrl findExecutable(const QString& name)
34{
35 QString exeExtension;
36#ifdef Q_OS_WIN
37 exeExtension = QStringLiteral(".exe");
38#endif
39 QFileInfo info(QString::fromLocal8Bit(DEBUGGEE_BIN_DIR), name + exeExtension);
40 Q_ASSERT_X(info.exists(), "findExecutable", info.filePath().toLocal8Bit());
41 Q_ASSERT(info.isExecutable());
42 return QUrl::fromLocalFile(info.canonicalFilePath());
43}
44
45QString findSourceFile(const QString& name)
46{

Callers 11

testEnvironmentCdMethod · 0.70
testRunDebuggerScriptMethod · 0.70
testPathWithSpaceMethod · 0.70
generateCoreFileFunction · 0.70
testCoreFileMethod · 0.70
chownptyFunction · 0.50
findExternalTTYMethod · 0.50
findExecutableMethod · 0.50

Calls 2

existsMethod · 0.80
filePathMethod · 0.45

Tested by

no test coverage detected