ACF $AcfVersion:0$
CRangesTest.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// Qt includes
6#include <QtCore/QObject>
7#include <QtTest/QtTest>
8
9// ACF includes
10#include <istd/TRanges.h>
12
13
14class CRangesTest: public QObject
15{
16 Q_OBJECT
17private slots:
18 void initTestCase();
19
20 // Constructor tests
21 void DefaultConstructorTest();
22 void RangeConstructorTest();
23
24 // Basic property tests
25 void IsEmptyTest();
26 void ResetTest();
27 void GetSetBeginStateTest();
28
29 // Switch point tests
30 void InsertSwitchPointTest();
31 void GetSwitchPointsTest();
32
33 // Membership tests
34 void IsInsidePointTest();
35 void IsInsideRangeTest();
36 void IsInsideRangesTest();
37
38 // Inversion tests
39 void GetInvertedTest();
40 void InvertTest();
41
42 // Union tests
43 void GetUnionRangesTest();
44 void UnionRangesTest();
45 void UnionRangeTest();
46
47 // Intersection tests
48 void GetIntersectionRangesTest();
49 void IntersectionRangesTest();
50 void IntersectionRangeTest();
51
52 // Morphological operations
53 void ErodeTest();
54 void DilateTest();
55 void RemoveGapsTest();
56
57 // Translation test
58 void ShiftRangesTest();
59
60 // Conversion tests
61 void GetAsListTest();
62
63 // Operator tests
64 void EqualityOperatorTest();
65 void HashTest();
66
67 // CIntRanges specific tests
68 void CIntRangesTest();
69
70 void cleanupTestCase();
71};