| 21 | } |
| 22 | |
| 23 | void 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 | |
| 35 | void TestKTextEditorHelpers::testExtractCursor_data() |
| 36 | { |