Ocean
Loading...
Searching...
No Matches
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
14
15namespace Ocean
16{
17
18namespace Test
19{
20
21namespace TestBase
22{
23
24/**
25 * This class implements a basic data type test.
26 * @ingroup testbase
27 */
28class OCEAN_TEST_BASE_EXPORT TestDataType
29{
30 public:
31
32 /**
33 * Invokes the data type test.
34 * @param testDuration The number of seconds for each test, with range (0, infinity)
35 * @param selector Test selector for filtering sub-tests; default runs all tests
36 * @return True, if succeeded
37 */
38 static bool test(const double testDuration, const TestSelector& selector = TestSelector());
39
40 /**
41 * Tests the signed and unsigned char data type.
42 * @return True, if succeeded
43 */
44 static bool testChar();
45
46 /**
47 * Tests the shift operator for integer values.
48 * @return True, if succeeded
49 */
50 static bool testIntegerShift();
51
52 /**
53 * Tests the arbitrary data types.
54 * @param testDuration The number of seconds for each test, with range (0, infinity)
55 * @return True, if succeeded
56 */
57 static bool testArbitraryDataType(const double testDuration);
58
59 /**
60 * Tests the unsigned typer class.
61 * @return True, if succeeded
62 */
63 static bool testUnsignedTyper();
64
65 /**
66 * Tests the absolute difference value typer class.
67 * @return True, if succeeded
68 */
70
71 /**
72 * Tests the Float16 data type.
73 * @return True, if succeeded
74 */
75 static bool testFloat16(const double testDuration);
76};
77
78}
79
80}
81
82}
83
84#endif // META_OCEAN_TEST_TESTBASE_TEST_DATA_TYPE_H
This class implements a basic data type test.
Definition TestDataType.h:29
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 testChar()
Tests the signed and unsigned char data type.
static bool testUnsignedTyper()
Tests the unsigned typer class.
static bool test(const double testDuration, const TestSelector &selector=TestSelector())
Invokes the data type test.
This class implements a test selector that parses test function strings and determines which tests sh...
Definition TestSelector.h:51
The namespace covering the entire Ocean framework.
Definition Accessor.h:15