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

Method TestCreate

util/memory/tempbuf_ut.cpp:36–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34UNIT_TEST_SUITE_REGISTRATION(TTempBufTest);
35
36void TTempBufTest::TestCreate() {
37 const size_t num = 1000000;
38 size_t tmp = 0;
39 const size_t len = 4096;
40
41 for (size_t i = 0; i < num; ++i) {
42 TTempBuf buf(len);
43
44 tmp += (size_t)buf.Data();
45 }
46
47 UNIT_ASSERT(tmp != 0);
48}
49
50void TTempBufTest::TestOps() {
51 TTempBuf tmp(201);

Callers

nothing calls this directly

Calls 1

DataMethod · 0.45

Tested by

no test coverage detected