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

Method TestList

util/ysaveload_ut.cpp:563–576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

561 }
562
563 void TestList() {
564 TBufferStream s;
565
566 TList<int> list = {0, 1, 10};
567 Save(&s, list);
568
569 list.clear();
570 Load(&s, list);
571
572 UNIT_ASSERT_VALUES_EQUAL(list.size(), 3);
573 UNIT_ASSERT_VALUES_EQUAL(*std::next(list.begin(), 0), 0);
574 UNIT_ASSERT_VALUES_EQUAL(*std::next(list.begin(), 1), 1);
575 UNIT_ASSERT_VALUES_EQUAL(*std::next(list.begin(), 2), 10);
576 }
577
578 void TestTuple() {
579 TBufferStream s;

Callers

nothing calls this directly

Calls 6

SaveFunction · 0.70
LoadFunction · 0.70
nextFunction · 0.50
clearMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected