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

Method createView

plugins/clang/tests/codecompletiontestbase.cpp:35–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35std::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
48void CodeCompletionTestBase::initTestCase()
49{

Callers 1

testSplitViewBuddiesMethod · 0.45

Calls 6

documentControllerMethod · 0.80
invalidFunction · 0.50
textDocumentMethod · 0.45
openDocumentMethod · 0.45
firstMethod · 0.45
viewsMethod · 0.45

Tested by

no test coverage detected