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

Method TestProceed

util/memory/tempbuf_ut.cpp:81–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void TTempBufTest::TestProceed() {
82 TTempBuf src;
83
84 char* data = src.Proceed(100);
85 UNIT_ASSERT_EQUAL(data, src.Data());
86 UNIT_ASSERT_EQUAL(data + 100, src.Current());
87 UNIT_ASSERT_EQUAL(100, src.Filled());
88
89 char* second = src.Proceed(100);
90 UNIT_ASSERT_EQUAL(data + 100, second);
91 UNIT_ASSERT_EQUAL(data + 200, src.Current());
92 UNIT_ASSERT_EQUAL(200, src.Filled());
93}

Callers

nothing calls this directly

Calls 4

ProceedMethod · 0.45
DataMethod · 0.45
CurrentMethod · 0.45
FilledMethod · 0.45

Tested by

no test coverage detected