Ocean
Loading...
Searching...
No Matches
TestDateTime.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_DATE_TIME_H
9#define META_OCEAN_TEST_TESTBASE_TEST_DATE_TIME_H
10
13
14namespace Ocean
15{
16
17namespace Test
18{
19
20namespace TestBase
21{
22
23/**
24 * This class implements a DateTime test.
25 * @ingroup testbase
26 */
27class OCEAN_TEST_BASE_EXPORT TestDateTime
28{
29 public:
30
31 /**
32 * Tests all DateTime functions.
33 * @param testDuration The number of seconds for each test, with range (0, infinity)
34 * @param selector The test selector
35 * @return True, if succeeded
36 */
37 static bool test(const double testDuration, const TestSelector& selector = TestSelector());
38
39 /**
40 * Tests the timestamp conversion.
41 * @param testDuration The number of seconds for each test, with range (0, infinity)
42 * @return True, if succeeded
43 */
44 static bool testConversion(const double testDuration);
45};
46
47}
48
49}
50
51}
52
53#endif // META_OCEAN_TEST_TESTBASE_TEST_DATE_TIME_H
This class implements a DateTime test.
Definition TestDateTime.h:28
static bool test(const double testDuration, const TestSelector &selector=TestSelector())
Tests all DateTime functions.
static bool testConversion(const double testDuration)
Tests the timestamp conversion.
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