File indexing completed on 2024-05-12 09:59:01
0001 /* 0002 This file is part of the Okteta Core library, made within the KDE community. 0003 0004 SPDX-FileCopyrightText: 2006, 2008 Friedrich W. H. Kossebau <kossebau@kde.org> 0005 0006 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0007 */ 0008 0009 #ifndef ADDRESSRANGETEST_HPP 0010 #define ADDRESSRANGETEST_HPP 0011 0012 // Qt 0013 #include <QObject> 0014 0015 namespace Okteta { 0016 0017 class AddressRangeTest : public QObject 0018 { 0019 Q_OBJECT 0020 0021 private Q_SLOTS: // test functions 0022 void testConstructorByEnd(); 0023 void testConstructorByWidth(); 0024 void testSimpleConstructor(); 0025 void testCopyConstructor(); 0026 void testSetGetStart(); 0027 void testSetGetEnd(); 0028 void testSetGetWidth(); 0029 void testIsEmpty(); 0030 void testCompare(); 0031 void testIncludes(); 0032 void testLocalIndex(); 0033 void testLocalRange(); 0034 void testSubRange(); 0035 void testAdaptToReplacement(); 0036 void testSplitAt(); 0037 void testSplitAtLocal(); 0038 void testRemove(); 0039 void testRemoveLocal(); 0040 void testStartForInclude(); 0041 void testIsJoinable(); 0042 }; 0043 0044 } 0045 0046 #endif