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

Function TestStreamReadTo

util/stream/ios_ut.cpp:381–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379
380 template <class T>
381 void TestStreamReadTo(const TString& text, T test) {
382 TStringInput is(text);
383 test(is, "TStringInput");
384 TMemoryInput mi(text.data(), text.size());
385 test(mi, "TMemoryInput");
386 TBuffer b(text.data(), text.size());
387 TBufferInput bi(b);
388 test(bi, "TBufferInput");
389 TStringInput slave(text);
390 TBufferedInput bdi(&slave);
391 test(bdi, "TBufferedInput");
392 TVector<TString> lst(1, text);
393 TStringListInput sli(lst);
394 test(sli, "IWalkInput");
395 }
396} // namespace
397
398void TStreamsTest::TestReadTo() {

Callers 2

TestReadToMethod · 0.85
TestStrokaInputMethod · 0.85

Calls 3

testFunction · 0.50
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected