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

Method projectPath

plugins/docker/tests/test_docker.cpp:83–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81 }
82
83 void projectPath() {
84 auto rt = ICore::self()->runtimeController()->currentRuntime();
85 QVERIFY(rt);
86 auto project = ICore::self()->projectController()->projects().first();
87 QVERIFY(project);
88
89 const Path file = project->projectItem()->folder()->fileList().first()->path();
90 const Path fileRuntime = rt->pathInRuntime(file);
91 QCOMPARE(fileRuntime, Path("/src/test/testfile.sh"));
92 QCOMPARE(rt->pathInHost(fileRuntime), file);
93 QCOMPARE(project->path(), rt->pathInHost(rt->pathInRuntime(project->path())));
94 }
95
96 void projectDirectory() {
97 auto rt = ICore::self()->runtimeController()->currentRuntime();

Callers

nothing calls this directly

Calls 12

currentRuntimeMethod · 0.80
runtimeControllerMethod · 0.80
projectsMethod · 0.80
projectControllerMethod · 0.80
folderMethod · 0.80
PathClass · 0.50
firstMethod · 0.45
pathMethod · 0.45
fileListMethod · 0.45
projectItemMethod · 0.45
pathInRuntimeMethod · 0.45
pathInHostMethod · 0.45

Tested by

no test coverage detected