| 36 | }; |
| 37 | |
| 38 | TEST_F(CoroutineCancelableTest, proxy_to_inner_awaitable) { |
| 39 | auto future = executor.execute([]() -> CoroutineTask<::std::string> { |
| 40 | co_return *co_await Cancellable<CoroutineTask<::std::string>> { |
| 41 | []() -> CoroutineTask<::std::string> { |
| 42 | co_return "10086"; |
| 43 | }()}; |
| 44 | }); |
| 45 | ASSERT_EQ("10086", future.get()); |
| 46 | } |
| 47 | |
| 48 | TEST_F(CoroutineCancelableTest, cancel_before_finish) { |
| 49 | ::std::promise<void> promise; |
nothing calls this directly
no test coverage detected