Definition at line 8 of file parallel_chunk_test.cpp.
◆ is_valid_resource()
template<typename T >
| bool ChunkTestBase::is_valid_resource |
( |
const T & |
resource | ) |
|
|
inlineprotectedinherited |
Definition at line 33 of file test_base.hpp.
33 {
34 return resource != nullptr;
35 }
◆ safe_cleanup()
template<typename T >
| void ChunkTestBase::safe_cleanup |
( |
T & |
resource | ) |
|
|
inlineprotectedinherited |
Definition at line 21 of file test_base.hpp.
21 {
22 try {
23 if (resource) {
24 resource.reset();
25 }
26 } catch (...) {
27
28 }
29 }
◆ SetUp()
| void ParallelChunkProcessorTest::SetUp |
( |
| ) |
|
|
inlineoverrideprotected |
Definition at line 13 of file parallel_chunk_test.cpp.
13 {
15
16 try {
18 chunks = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}};
19 } catch (const std::exception& e) {
20 FAIL() << "Setup failed: " << e.what();
21 }
22 }
std::vector< int > test_data
std::vector< std::vector< int > > chunks
References chunks, ChunkTestBase::SetUp(), and test_data.
◆ TearDown()
| void ParallelChunkProcessorTest::TearDown |
( |
| ) |
|
|
inlineoverrideprotected |
◆ chunks
| std::vector<std::vector<int> > ParallelChunkProcessorTest::chunks |
|
protected |
◆ global_test_mutex_
| std::mutex ChunkTestBase::global_test_mutex_ |
|
staticprotectedinherited |
◆ TEST_COOLDOWN
| constexpr auto ChunkTestBase::TEST_COOLDOWN = std::chrono::milliseconds(100) |
|
staticconstexprprotectedinherited |
◆ test_cv_
| std::condition_variable ChunkTestBase::test_cv_ |
|
staticprotectedinherited |
◆ test_data
| std::vector<int> ParallelChunkProcessorTest::test_data |
|
protected |
◆ test_running_
| bool ChunkTestBase::test_running_ = false |
|
staticprotectedinherited |
The documentation for this class was generated from the following file: