| 173 | }; |
| 174 | |
| 175 | TEST_P(TestRunSynchronously, SimpleRun) { |
| 176 | bool task_ran = false; |
| 177 | auto task = [&](Executor* executor) { |
| 178 | EXPECT_NE(executor, nullptr); |
| 179 | task_ran = true; |
| 180 | return Future<>::MakeFinished(); |
| 181 | }; |
| 182 | ASSERT_OK(RunVoid(std::move(task))); |
| 183 | EXPECT_TRUE(task_ran); |
| 184 | } |
| 185 | |
| 186 | TEST_P(TestRunSynchronously, SpawnNested) { |
| 187 | bool nested_ran = false; |
nothing calls this directly
no test coverage detected