ACF $AcfVersion:0$
CVarIndexTestRunner.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/CVarIndex.h>
11#include <istd/TIndex.h>
12
13class CVarIndexTestRunner: public QObject
14{
15 Q_OBJECT
16private slots:
17 // Constructor tests
18 void testDefaultConstructor();
19 void testSizeConstructor();
20 void testCopyConstructor();
21 void testStdVectorConstructor();
22 void testQVectorConstructor();
23 void testTIndexConstructor();
24
25 // Dimension management tests
26 void testGetDimensionsCount();
27 void testSetDimensionsCount();
28 void testIsDimensionsCountFixed();
29
30 // Element access tests
31 void testGetAt();
32 void testSetAt();
33 void testOperatorBracket();
34 void testSetAllTo();
35
36 // Validation tests
37 void testIsValid();
38 void testIsZero();
39 void testIsSizeEmpty();
40
41 // Reset and Clear tests
42 void testReset();
43 void testClear();
44
45 // Iterator tests
46 void testIterators();
47
48 // Increment/Decrement tests
49 void testIncreaseAt();
50 void testDecreaseAt();
51 void testIncrease();
52 void testDecrease();
53
54 // Boundary tests
55 void testIsInside();
56
57 // Utility methods tests
58 void testGetProductVolume();
59 void testGetIterationIndex();
60 void testGetMinDimensionsCount();
61 void testGetExpanded();
62 void testToStdVector();
63
64 // Comparison operators tests
65 void testEqualityOperators();
66 void testLessThanOperator();
67 void testGreaterThanOperator();
68 void testLessOrEqualOperator();
69 void testGreaterOrEqualOperator();
70
71 // Assignment operators tests
72 void testAssignmentOperator();
73 void testPlusEqualOperator();
74 void testMinusEqualOperator();
75
76 // Hash function test
77 void testQHash();
78};