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

Method TestIterate

util/generic/intrlist_ut.cpp:123–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123void TListTest::TestIterate() {
124 TMyList l(1000);
125 size_t c = 0;
126
127 for (TMyList::TIterator it = l.Begin(); it != l.End(); ++it) {
128 ++c;
129
130 UNIT_ASSERT_EQUAL(*it, (int)c);
131 }
132
133 UNIT_ASSERT_EQUAL(c, 1000);
134}
135
136void TListTest::TestRIterate() {
137 TMyList l(1000);

Callers

nothing calls this directly

Calls 2

BeginMethod · 0.45
EndMethod · 0.45

Tested by

no test coverage detected