| 26 | namespace utils { |
| 27 | |
| 28 | TEST(JobDispatcher, SequenceDispatcher) { |
| 29 | std::unique_ptr<JobDispatcher> dispatcher = |
| 30 | std::make_unique<SequenceDispatcher>(1, 3); |
| 31 | ASSERT_EQ(1, dispatcher->Next()); |
| 32 | ASSERT_EQ(2, dispatcher->Next()); |
| 33 | // check reach the end |
| 34 | ASSERT_EQ(-1, dispatcher->Next()); |
| 35 | } |
| 36 | |
| 37 | TEST(parallel_run, Basic) { |
| 38 | std::vector<int> results(100, -1); |
nothing calls this directly
no test coverage detected