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

Method testExtractCursor

kdevplatform/util/tests/test_texteditorhelpers.cpp:23–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23void TestKTextEditorHelpers::testExtractCursor()
24{
25 QFETCH(QString, input);
26 QFETCH(KTextEditor::Cursor, expectedCursor);
27 QFETCH(QString, expectedPath);
28
29 int pathLen;
30 const auto cursor = KTextEditorHelpers::extractCursor(input, &pathLen);
31 QCOMPARE(cursor, expectedCursor);
32 QCOMPARE(input.mid(0, pathLen), expectedPath);
33}
34
35void TestKTextEditorHelpers::testExtractCursor_data()
36{

Callers

nothing calls this directly

Calls 1

midMethod · 0.80

Tested by

no test coverage detected