MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / getSearchPaths

Method getSearchPaths

gui/test/projectfile/testprojectfile.cpp:144–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144void TestProjectFile::getSearchPaths() const
145{
146#ifdef FILESDIR
147 const QString f(FILESDIR "\n" // example: "/usr/local/share/cppcheck\n"
148 FILESDIR "/dir\n"); // example: "/usr/local/share/cppcheck/dir\n"
149#else
150 const QString f;
151#endif
152
153 QCOMPARE(ProjectFile::getSearchPaths("projectPath", "appPath", "datadir", "dir").join("\n"),
154 "appPath\n"
155 "appPath/dir\n"
156 "projectPath\n" +
157 f +
158 "datadir\n"
159 "datadir/dir");
160}
161
162void TestProjectFile::getInlineSuppressionDefaultValue() const
163{

Callers

nothing calls this directly

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected