ACF $AcfVersion:0$
CRangeTest.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/TRange.h>
12
13
14class CRangeTest: public QObject
15{
16 Q_OBJECT
17private slots:
18 void initTestCase();
19
20 // Constructor tests
21 void ConstructorTest();
22 void CopyConstructorTest();
23
24 // Basic property tests
25 void IsValidTest();
26 void IsEmptyTest();
27 void IsValidNonEmptyTest();
28 void GetSetMinMaxTest();
29 void GetLengthTest();
30 void GetAbsMinMaxValueTest();
31
32 // Validation tests
33 void GetValidatedTest();
34 void ValidateTest();
35
36 // Contains tests
37 void ContainsValueTest();
38 void ContainsRangeTest();
39
40 // Intersection tests
41 void IsIntersectedByTest();
42 void IsOutsideOfTest();
43 void GetIntersectionTest();
44 void IntersectionTest();
45
46 // Union tests
47 void GetUnionTest();
48 void UniteTest();
49
50 // Translation tests
51 void GetTranslatedTest();
52 void TranslateTest();
53
54 // Expansion tests
55 void GetExpandedTest();
56 void ExpandTest();
57
58 // Distance and clipping tests
59 void GetDistanceTest();
60 void GetNearestInsideTest();
61 void GetClippedValueTest();
62 void GetClippedRangeTest();
63
64 // Alpha/mapping tests
65 void GetValueFromAlphaTest();
66 void GetAlphaFromValueTest();
67 void GetMappedToTest();
68
69 // Apply tests
70 void GetApplyTest();
71 void GetInvertApplyTest();
72 void GetInvertedTest();
73
74 // Interpolation tests
75 void SetInterpolatedTest();
76
77 // Operator tests
78 void EqualityOperatorTest();
79 void AssignmentOperatorTest();
80 void MultiplicationOperatorTest();
81 void DivisionOperatorTest();
82
83 // Static method tests
84 void GetNullTest();
85 void GetInvalidTest();
86 void GetValidTest();
87
88 // Reset test
89 void ResetTest();
90
91 // CIntRange specific tests
92 void CIntRangeTest();
93
94 void cleanupTestCase();
95};