| 367 | |
| 368 | TEST_F(ExecutorTest, return_invalid_future_when_invoke_fail) { |
| 369 | struct BadExecutor : public Executor { |
| 370 | virtual int invoke(MoveOnlyFunction<void(void)>&&) noexcept override { |
| 371 | return -1; |
| 372 | } |
| 373 | } executor; |
| 374 | auto future = executor.execute([] {}); |
| 375 | ASSERT_FALSE(future.valid()); |
| 376 | future = async(executor, [] {}); |
nothing calls this directly
no outgoing calls
no test coverage detected