| 953 | } |
| 954 | |
| 955 | void TCoroTest::TestPause() { |
| 956 | TContExecutor executor{1024*1024, IPollerFace::Default(), nullptr, nullptr, NCoro::NStack::EGuard::Canary, Nothing()}; |
| 957 | |
| 958 | int i = 0; |
| 959 | executor.CreateOwned([&](TCont*) { |
| 960 | i++; |
| 961 | executor.Pause(); |
| 962 | i++; |
| 963 | }, "coro"); |
| 964 | |
| 965 | UNIT_ASSERT_EQUAL(i, 0); |
| 966 | executor.Execute(); |
| 967 | UNIT_ASSERT_EQUAL(i, 1); |
| 968 | executor.Execute(); |
| 969 | UNIT_ASSERT_EQUAL(i, 2); |
| 970 | } |
| 971 | |
| 972 | void TCoroTest::TestUserEvent() { |
| 973 | TContExecutor exec(32000); |
nothing calls this directly
no test coverage detected