MCPcopy Create free account
hub / github.com/catboost/catboost / CoMain

Function CoMain

library/cpp/coroutine/engine/coroutine_ut.cpp:143–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143static void CoMain(TCont* c, void* /*arg*/) {
144 for (volatile size_t i2 = 0; i2 < 10; ++i2) {
145 UNIT_ASSERT(RunningCont() == c);
146 c->Executor()->Create(CoRun, nullptr, "run");
147 UNIT_ASSERT(RunningCont() == c);
148 }
149}
150
151void TCoroTest::TestSimpleX1() {
152 i0 = 0;

Callers

nothing calls this directly

Calls 3

RunningContFunction · 0.85
CreateMethod · 0.45
ExecutorMethod · 0.45

Tested by

no test coverage detected