Ocean
TestDataType.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) Meta Platforms, Inc. and affiliates.
3  *
4  * This source code is licensed under the MIT license found in the
5  * LICENSE file in the root directory of this source tree.
6  */
7 
8 #ifndef META_OCEAN_TEST_TESTBASE_TEST_DATA_TYPE_H
9 #define META_OCEAN_TEST_TESTBASE_TEST_DATA_TYPE_H
10 
12 
13 namespace Ocean
14 {
15 
16 namespace Test
17 {
18 
19 namespace TestBase
20 {
21 
22 /**
23  * This class implements a basic data type test.
24  * @ingroup testbase
25  */
26 class OCEAN_TEST_BASE_EXPORT TestDataType
27 {
28  public:
29 
30  /**
31  * Invokes the data type test.
32  * @param testDuration The number of seconds for each test, with range (0, infinity)
33  * @return True, if succeeded
34  */
35  static bool test(const double testDuration);
36 
37  /**
38  * Tests the signed and unsigned char data type.
39  * @return True, if succeeded
40  */
41  static bool testChar();
42 
43  /**
44  * Tests the shift operator for integer values.
45  * @return True, if succeeded
46  */
47  static bool testIntegerShift();
48 
49  /**
50  * Tests the arbitrary data types.
51  * @param testDuration The number of seconds for each test, with range (0, infinity)
52  * @return True, if succeeded
53  */
54  static bool testArbitraryDataType(const double testDuration);
55 
56  /**
57  * Tests the unsigned typer class.
58  * @return True, if succeeded
59  */
60  static bool testUnsignedTyper();
61 
62  /**
63  * Tests the absolute difference value typer class.
64  * @return True, if succeeded
65  */
67 
68  /**
69  * Tests the Float16 data type.
70  * @return True, if succeeded
71  */
72  static bool testFloat16(const double testDuration);
73 };
74 
75 }
76 
77 }
78 
79 }
80 
81 #endif // META_OCEAN_TEST_TESTBASE_TEST_DATA_TYPE_H
This class implements a basic data type test.
Definition: TestDataType.h:27
static bool testAbsoluteDifferenceValueTyper()
Tests the absolute difference value typer class.
static bool testArbitraryDataType(const double testDuration)
Tests the arbitrary data types.
static bool testFloat16(const double testDuration)
Tests the Float16 data type.
static bool testIntegerShift()
Tests the shift operator for integer values.
static bool test(const double testDuration)
Invokes the data type test.
static bool testChar()
Tests the signed and unsigned char data type.
static bool testUnsignedTyper()
Tests the unsigned typer class.
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15