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

Method testUrl

kdevplatform/serialization/tests/test_indexedstringview.cpp:38–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38void TestIndexedStringView::testUrl()
39{
40 QFETCH(const QUrl, url);
41 IndexedStringView indexed(url);
42 QCOMPARE(indexed.toString(), IndexedString{url});
43 QCOMPARE(indexed.toString().toUrl(), url);
44 QCOMPARE(indexed.index(), IndexedString::indexForUrl(url));
45 QTEST(indexed.toString().str(), "string");
46}
47
48void TestIndexedStringView::test_data()
49{

Callers

nothing calls this directly

Calls 4

strMethod · 0.80
toStringMethod · 0.45
toUrlMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected