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

Method TestContext

kdevplatform/language/duchain/tests/test_duchain.cpp:448–457  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446struct TestContext
447{
448 TestContext()
449 {
450 static int number = 0;
451 ++number;
452 DUChainWriteLocker lock(DUChain::lock());
453 m_context = new TopDUContext(IndexedString(QStringLiteral("/test1/%1").arg(number)), RangeInRevision());
454 m_normalContext = new DUContext(RangeInRevision(), m_context);
455 DUChain::self()->addDocumentChain(m_context);
456 Q_ASSERT(IndexedDUContext(m_context).context() == m_context);
457 }
458
459 ~TestContext()
460 {

Callers

nothing calls this directly

Calls 5

addDocumentChainMethod · 0.80
IndexedStringClass · 0.50
RangeInRevisionFunction · 0.50
IndexedDUContextClass · 0.50
contextMethod · 0.45

Tested by

no test coverage detected