| 33 | } |
| 34 | |
| 35 | std::unique_ptr<KTextEditor::View, DeleteDocument> CodeCompletionTestBase::createView(const QUrl& url) const |
| 36 | { |
| 37 | auto doc = KDevelop::ICore::self() |
| 38 | ->documentController() |
| 39 | ->openDocument(url, KTextEditor::Range::invalid(), KDevelop::IDocumentController::DoNotActivate) |
| 40 | ->textDocument(); |
| 41 | Q_ASSERT(doc); |
| 42 | |
| 43 | auto view = doc->views().first(); |
| 44 | Q_ASSERT(view); |
| 45 | return std::unique_ptr<KTextEditor::View, DeleteDocument>(view); |
| 46 | } |
| 47 | |
| 48 | void CodeCompletionTestBase::initTestCase() |
| 49 | { |
no test coverage detected