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

Function Y_UNIT_TEST

util/stream/length_ut.cpp:8–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6
7Y_UNIT_TEST_SUITE(TestLengthIO) {
8 Y_UNIT_TEST(TestLengthLimitedInput) {
9 char buf[16];
10
11 TStringStream s1("abcd");
12 TLengthLimitedInput l1(&s1, 2);
13 UNIT_ASSERT_VALUES_EQUAL(l1.Load(buf, 3), 2);
14 UNIT_ASSERT_VALUES_EQUAL(l1.Read(buf, 1), 0);
15 }
16
17 Y_UNIT_TEST(TestCountingInput) {
18 char buf[16];

Callers

nothing calls this directly

Calls 8

LoadMethod · 0.45
ReadMethod · 0.45
ReadLineMethod · 0.45
CounterMethod · 0.45
SkipMethod · 0.45
WriteMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected