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