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

Function TestStreamReadTo2

util/stream/ios_ut.cpp:349–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347 }
348
349 void TestStreamReadTo2(IInputStream& input, const char* comment) {
350 TString s;
351 size_t i = 0;
352 while (input.ReadLine(s)) {
353 UNIT_ASSERT_C(i < Y_ARRAY_SIZE(Expected), comment);
354 UNIT_ASSERT_VALUES_EQUAL_C(s, Expected[i], comment);
355 ++i;
356 }
357 }
358
359 void TestStreamReadTo3(IInputStream& input, const char* comment) {
360 UNIT_ASSERT_VALUES_EQUAL_C(input.ReadLine(), "111a222b333c444d555e666f", comment);

Callers

nothing calls this directly

Calls 1

ReadLineMethod · 0.45

Tested by

no test coverage detected