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

Method TestIt

util/memory/addstorage_ut.cpp:14–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12
13private:
14 inline void TestIt() {
15 THolder<TClass> c(new (100) TClass);
16
17 UNIT_ASSERT_EQUAL(c->AdditionalDataLength(), 100);
18
19 // test segfault
20 memset(c->AdditionalData(), 0, c->AdditionalDataLength());
21 }
22};
23
24UNIT_TEST_SUITE_REGISTRATION(TAddStorageTest);

Callers

nothing calls this directly

Calls 2

AdditionalDataLengthMethod · 0.80
AdditionalDataMethod · 0.80

Tested by

no test coverage detected