| 446 | struct 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 | { |
nothing calls this directly
no test coverage detected