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

Method init

kdevplatform/shell/tests/test_documentcontroller.cpp:37–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37void TestDocumentController::init()
38{
39 Core::self()->documentControllerInternal()->initialize();
40
41 // create temp files
42 m_file1.setFileTemplate(m_tempDir.path() + "/tmp_XXXXXX.txt");
43 m_file2.setFileTemplate(m_tempDir.path() + "/tmp_XXXXXX.txt");
44 if(!m_file1.open() || !m_file2.open()) {
45 QFAIL("Can't create temp files");
46 }
47
48 // pre-conditions
49 QVERIFY(m_subject->openDocuments().empty());
50 QVERIFY(m_subject->documentForUrl(QUrl()) == nullptr);
51 QVERIFY(m_subject->activeDocument() == nullptr);
52}
53
54void TestDocumentController::cleanup()
55{

Callers

nothing calls this directly

Calls 9

emptyMethod · 0.80
openDocumentsMethod · 0.80
documentForUrlMethod · 0.80
activeDocumentMethod · 0.80
QUrlClass · 0.50
initializeMethod · 0.45
pathMethod · 0.45
openMethod · 0.45

Tested by

no test coverage detected