Ocean
Loading...
Searching...
No Matches
TestBinPacking.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_TESTCV_TESTSEGMENTATION_TEST_BIN_PACKING_H
9#define META_OCEAN_TEST_TESTCV_TESTSEGMENTATION_TEST_BIN_PACKING_H
10
12
14
15namespace Ocean
16{
17
18namespace Test
19{
20
21namespace TestCV
22{
23
24namespace TestSegmentation
25{
26
27/**
28 * This class implements test for bin packing.
29 * @ingroup testcvsegmentation
30 */
31class OCEAN_TEST_CV_SEGMENTATION_EXPORT TestBinPacking
32{
33 public:
34
35 /**
36 * Tests all bin packing functions.
37 * @param testDuration Number of seconds for each test, with range (0, infinity)
38 * @param worker The worker object to distribute the computational load
39 * @param selector The test selector
40 * @return True, if succeeded
41 */
42 static bool test(const double testDuration, Worker& worker, const TestSelector& selector);
43
44 /**
45 * Tests the bin packing function.
46 * @param testDuration Number of seconds for each test, with range (0, infinity)
47 * @return True, if succeeded
48 */
49 static bool testBinPacking(const double testDuration);
50};
51
52} // namespace TestSegmentation
53
54} // namespace TestCV
55
56} // namespace Test
57
58} // namespace Ocean
59
60#endif // META_OCEAN_TEST_TESTCV_TESTSEGMENTATION_TEST_BIN_PACKING_H
This class implements test for bin packing.
Definition TestBinPacking.h:32
static bool test(const double testDuration, Worker &worker, const TestSelector &selector)
Tests all bin packing functions.
static bool testBinPacking(const double testDuration)
Tests the bin packing function.
This class implements a test selector that parses test function strings and determines which tests sh...
Definition TestSelector.h:51
This class implements a worker able to distribute function calls over different threads.
Definition Worker.h:33
The namespace covering the entire Ocean framework.
Definition Accessor.h:15