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

Function TestStrokaInput

util/stream/ios_ut.cpp:369–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367 }
368
369 void TestStrokaInput(IInputStream& input, const char* comment) {
370 TString line;
371 ui32 i = 0;
372 TInstant start = Now();
373 while (input.ReadLine(line)) {
374 ++i;
375 }
376 Cout << comment << ":" << (Now() - start).SecondsFloat() << Endl;
377 UNIT_ASSERT_VALUES_EQUAL(i, 100000);
378 }
379
380 template <class T>
381 void TestStreamReadTo(const TString& text, T test) {

Callers

nothing calls this directly

Calls 3

SecondsFloatMethod · 0.80
NowFunction · 0.50
ReadLineMethod · 0.45

Tested by

no test coverage detected