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

Method test

kdevplatform/serialization/tests/test_indexedstringview.cpp:59–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59void TestIndexedStringView::test()
60{
61 QFETCH(const QString, data);
62
63 const IndexedStringView indexed(data);
64 QCOMPARE(indexed.toString(), IndexedString{data});
65 QCOMPARE(indexed.toString().str(), data);
66 QCOMPARE(indexed.index(), IndexedString::indexForString(data));
67}
68
69void TestIndexedStringView::testCString()
70{

Callers

nothing calls this directly

Calls 3

strMethod · 0.80
toStringMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected