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

Function Y_UNIT_TEST

util/generic/buffer_ut.cpp:9–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8Y_UNIT_TEST_SUITE(TBufferTest) {
9 Y_UNIT_TEST(TestEraseBack) {
10 TBuffer buf;
11
12 buf.Append("1234567", 7);
13 buf.Reserve(1000);
14 buf.Resize(6);
15 buf.EraseBack(2);
16
17 UNIT_ASSERT_EQUAL(TString(buf.data(), buf.size()), "1234");
18 }
19
20 Y_UNIT_TEST(TestAppend) {
21 const char data[] = "1234567890qwertyuiop";

Callers

nothing calls this directly

Calls 15

MicroSecondsFunction · 0.85
EraseBackMethod · 0.80
AlignUpMethod · 0.80
ChopMethod · 0.80
AppendMethod · 0.45
ReserveMethod · 0.45
ResizeMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45
appendMethod · 0.45
ClearMethod · 0.45
CapacityMethod · 0.45

Tested by

no test coverage detected