| 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) { |
nothing calls this directly
no test coverage detected