File indexing completed on 2024-04-14 03:54:56

0001 /*
0002     This file is part of the KDE libraries
0003     SPDX-FileCopyrightText: 2010 Christoph Cullmann <cullmann@kde.org>
0004     SPDX-FileCopyrightText: 2005 Hamish Rodda <rodda@kde.org>
0005 
0006     SPDX-License-Identifier: LGPL-2.0-or-later
0007 */
0008 
0009 #ifndef KATE_RANGE_TEST_H
0010 #define KATE_RANGE_TEST_H
0011 
0012 #include <QObject>
0013 
0014 #include <ktexteditor/range.h>
0015 
0016 class RangeTest : public QObject
0017 {
0018     Q_OBJECT
0019 
0020 public:
0021     RangeTest();
0022     ~RangeTest() override;
0023 
0024 private Q_SLOTS:
0025     void testTextEditorRange();
0026     void testTextRange();
0027     void testInsertText();
0028     void testCornerCaseInsertion();
0029     void testCursorStringConversion();
0030     void testRangeStringConversion();
0031     void testLineRangeStringConversion();
0032     void testLineRange();
0033 
0034 private:
0035     void rangeCheck(KTextEditor::Range &valid);
0036     void lineRangeCheck(KTextEditor::LineRange &range);
0037 };
0038 
0039 #endif