| 328 | } |
| 329 | |
| 330 | void TestFinishNeverStarted(std::shared_ptr<TaskGroup> task_group) { |
| 331 | // If we call FinishAsync we are done adding tasks so if we never added any it should be |
| 332 | // completed |
| 333 | auto finished = task_group->FinishAsync(); |
| 334 | ASSERT_TRUE(finished.Wait(1)); |
| 335 | } |
| 336 | |
| 337 | void TestFinishAlreadyCompleted(std::function<std::shared_ptr<TaskGroup>()> factory) { |
| 338 | // If we call FinishAsync we are done adding tasks so even if no tasks are running we |
no test coverage detected