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

Class TestDocumentController

kdevplatform/shell/tests/test_documentcontroller.h:23–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21using namespace KDevelop;
22
23class TestDocumentController : public QObject
24{
25 Q_OBJECT
26private Q_SLOTS:
27 void initTestCase();
28 void init();
29 void cleanup();
30 void cleanupTestCase();
31
32 void testOpeningNewDocumentFromText();
33 void testOpeningDocumentFromUrl();
34 void testSaveSomeDocuments();
35 void testSaveAllDocuments();
36 void testCloseAllDocuments();
37 void testEmptyUrl();
38
39private :
40 QUrl createFile(const QTemporaryDir& dir, const QString& filename);
41
42 IDocumentController* m_subject;
43 QTemporaryDir m_tempDir;
44 QTemporaryFile m_file1;
45 QTemporaryFile m_file2;
46};
47
48#endif // KDEVPLATFORM_TEST_DOCUMENTCONTROLLER_H

Callers

nothing calls this directly

Calls 1

initTestCaseFunction · 0.50

Tested by

no test coverage detected