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

Method waitForParsed

kdevplatform/tests/testfile.cpp:158–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158bool TestFile::waitForParsed(int timeout)
159{
160 Q_D(TestFile);
161
162 if (!d->ready) {
163 // optimize: we don't want to wait the usual timeout before parsing documents here
164 ICore::self()->languageController()->backgroundParser()->parseDocuments();
165 }
166 QElapsedTimer t;
167 t.start();
168 while (!d->ready && t.elapsed() < timeout) {
169 QTest::qWait(10);
170 }
171 return d->ready;
172}
173
174bool TestFile::isReady() const
175{

Calls 5

parseDocumentsMethod · 0.80
backgroundParserMethod · 0.80
languageControllerMethod · 0.80
elapsedMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected