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

Class TFailOnCopy

util/thread/pool_ut.cpp:141–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139
140 Y_UNIT_TEST(TestFunctionNotCopied) {
141 struct TFailOnCopy {
142 TFailOnCopy() {
143 }
144
145 TFailOnCopy(TFailOnCopy&&) {
146 }
147
148 TFailOnCopy(const TFailOnCopy&) {
149 UNIT_FAIL("Don't copy std::function inside TThreadPool");
150 }
151 };
152
153 TThreadPool queue(TThreadPool::TParams().SetBlocking(false).SetCatching(true));
154 queue.Start(2);

Callers 1

Y_UNIT_TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected