| 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 | |
| 398 | void TStreamsTest::TestReadTo() { |
no test coverage detected