File indexing completed on 2024-09-15 12:02:32
0001 /* 0002 This file is part of the KDE libraries 0003 SPDX-FileCopyrightText: 2008 Niko Sams <niko.sams\gmail.com> 0004 0005 SPDX-License-Identifier: LGPL-2.0-or-later 0006 */ 0007 0008 #ifndef KATE_COMPLETIONTEST_H 0009 #define KATE_COMPLETIONTEST_H 0010 0011 #include <QObject> 0012 0013 namespace KTextEditor 0014 { 0015 class Document; 0016 } 0017 namespace KTextEditor 0018 { 0019 class ViewPrivate; 0020 } 0021 0022 class CompletionTest : public QObject 0023 { 0024 Q_OBJECT 0025 0026 public: 0027 CompletionTest() 0028 { 0029 } 0030 ~CompletionTest() override 0031 { 0032 } 0033 0034 private Q_SLOTS: 0035 void init(); 0036 void cleanup(); 0037 void testFilterEmptyRange(); 0038 void testFilterWithRange(); 0039 void testCustomRange1(); 0040 void testCustomRange2(); 0041 void testCustomRangeMultipleModels(); 0042 void testAbortCursorMovedOutOfRange(); 0043 void testAbortInvalidText(); 0044 void testAbortController(); 0045 void testAbortControllerMultipleModels(); 0046 void testEmptyFilterString(); 0047 void testUpdateCompletionRange(); 0048 void testCustomStartCompl(); 0049 void testKateCompletionModel(); 0050 void testAbortImmideatelyAfterStart(); 0051 void testJumpToListBottomAfterCursorUpWhileAtTop(); 0052 void testAbbrevAndContainsMatching(); 0053 void testAsyncMatching(); 0054 void testAbbreviationEngine(); 0055 void testAutoCompletionPreselectFirst(); 0056 void testTabCompletion(); 0057 void benchAbbreviationEngineNormalCase(); 0058 void benchAbbreviationEngineWorstCase(); 0059 void benchAbbreviationEngineGoodCase(); 0060 void benchCompletionModel(); 0061 0062 private: 0063 KTextEditor::Document *m_doc; 0064 KTextEditor::ViewPrivate *m_view; 0065 }; 0066 0067 #endif