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

Function Y_UNIT_TEST

util/stream/buffer_ut.cpp:12–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11Y_UNIT_TEST_SUITE(TBufferTest) {
12 Y_UNIT_TEST(Transfer) {
13 TBuffer buffer("razrazraz", 9);
14 TBufferInput input(buffer);
15
16 input.Skip(3);
17
18 TStringStream output;
19 TransferData(&input, &output);
20
21 UNIT_ASSERT_VALUES_EQUAL(output.Str(), "razraz");
22 }
23
24 Y_UNIT_TEST(ReadTo) {
25 TBuffer buffer("1234567890", 10);

Callers

nothing calls this directly

Calls 12

TransferDataFunction · 0.85
memcmpFunction · 0.85
MinFunction · 0.50
SkipMethod · 0.45
StrMethod · 0.45
ReadToMethod · 0.45
push_backMethod · 0.45
sizeMethod · 0.45
NextMethod · 0.45
beginMethod · 0.45
UndoMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected