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

Function TestCutBack

util/generic/intrlist_ut.cpp:252–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252static void TestCutBack(int N, int M) {
253 TMyList l(N);
254 TMyList l2(0);
255
256 TMyList::TIterator it = l.Begin();
257 for (int i = 0; i < M; ++i) {
258 ++it;
259 }
260
261 TMyList::Cut(it, l.End(), l2.End());
262 CheckIterationAfterCut(l, l2, N, M);
263}
264
265void TListTest::TestCut() {
266 TestCutFront(1000, 500);

Callers 1

TestCutMethod · 0.85

Calls 3

CheckIterationAfterCutFunction · 0.85
BeginMethod · 0.45
EndMethod · 0.45

Tested by

no test coverage detected