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

Method TestSimpleX1

library/cpp/coroutine/engine/coroutine_ut.cpp:151–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151void TCoroTest::TestSimpleX1() {
152 i0 = 0;
153 TContExecutor e(32000);
154
155 UNIT_ASSERT(RunningCont() == nullptr);
156
157 e.Execute(CoMain);
158 UNIT_ASSERT_VALUES_EQUAL(i0, 100000);
159
160 UNIT_ASSERT(RunningCont() == nullptr);
161}
162
163void TCoroTest::TestSimpleX1MultiThread() {
164 TVector<THolder<TThread>> threads;

Callers

nothing calls this directly

Calls 2

RunningContFunction · 0.85
ExecuteMethod · 0.45

Tested by

no test coverage detected