MCPcopy Create free account
hub / github.com/canonical/mir / TEST

Function TEST

tests/unit-tests/test_thread_pool_executor.cpp:34–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32namespace mt = mir::test;
33
34TEST(ThreadPoolExecutor, executes_work)
35{
36 auto const done = std::make_shared<mt::Signal>();
37 mir::thread_pool_executor.spawn([done]() { done->raise(); });
38
39 EXPECT_TRUE(done->wait_for(60s));
40}
41
42TEST(ThreadPoolExecutor, can_execute_work_from_within_work_item)
43{

Callers 1

Calls 8

set_valueMethod · 0.80
whatMethod · 0.80
spawnMethod · 0.45
raiseMethod · 0.45
wait_forMethod · 0.45
getMethod · 0.45
sizeMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected