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

Method SetUp

test/coroutine/test_task.cpp:73–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71
72struct CoroutineTest : public ::testing::Test {
73 virtual void SetUp() override {
74 executor.set_worker_number(8);
75 executor.set_local_capacity(8);
76 executor.start();
77 destroy_times = 0;
78 }
79
80 static void assert_in_executor(Executor& executor) {
81 if (!executor.is_running_in()) {

Callers

nothing calls this directly

Calls 3

set_worker_numberMethod · 0.80
set_local_capacityMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected