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

Method testUrlDocument

kdevplatform/sublime/tests/test_document.cpp:81–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void TestDocument::testUrlDocument()
82{
83 QFETCH(const QString, fileName);
84 const auto url = makeUrl(fileName);
85
86 Controller controller;
87 EditableUrlDocument doc(&controller, url);
88
89 ::testUrlDocument(doc, url);
90 RETURN_IF_TEST_FAILED();
91
92 const auto plainTextUrl = makeUrl("x.txt");
93 doc.setUrl(plainTextUrl);
94 ::testUrlDocument(doc, plainTextUrl);
95 RETURN_IF_TEST_FAILED();
96
97 doc.setUrl(url);
98 ::testUrlDocument(doc, url);
99 RETURN_IF_TEST_FAILED();
100}
101
102void TestDocument::viewDeletion()
103{

Callers

nothing calls this directly

Calls 3

makeUrlFunction · 0.85
testUrlDocumentFunction · 0.85
setUrlMethod · 0.45

Tested by

no test coverage detected