MCPcopy Create free account
hub / github.com/baidu/babylon / BadExecutor

Class BadExecutor

test/test_executor.cpp:369–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367
368TEST_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, [] {});

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected