diff options
author | danlark <danlark@yandex-team.ru> | 2022-02-10 16:46:10 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:10 +0300 |
commit | baa58daefa91fde4b4769facdbd2903763b9c6a8 (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/stream/ios_ut.cpp | |
parent | 3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (diff) | |
download | ydb-baa58daefa91fde4b4769facdbd2903763b9c6a8.tar.gz |
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/stream/ios_ut.cpp')
-rw-r--r-- | util/stream/ios_ut.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/util/stream/ios_ut.cpp b/util/stream/ios_ut.cpp index 2f08fc57ba..139f4296e5 100644 --- a/util/stream/ios_ut.cpp +++ b/util/stream/ios_ut.cpp @@ -191,7 +191,7 @@ public: s.append((const char*)p[i].buf, p[i].len); } - DoWrite(s.data(), s.size()); + DoWrite(s.data(), s.size()); } private: @@ -210,13 +210,13 @@ void TStreamsTest::TestBufferedIO() { TString str(" "); str += ToString(i % 10); - bo.Write(str.data(), str.size()); + bo.Write(str.data(), str.size()); } bo.Finish(); } - UNIT_ASSERT_EQUAL(s.size(), 2000); + UNIT_ASSERT_EQUAL(s.size(), 2000); { const size_t buflen = 11; @@ -248,7 +248,7 @@ void TStreamsTest::TestBufferedIO() { } for (size_t i = 0; i < 1000; ++i) { - bo.Write(f.data(), i); + bo.Write(f.data(), i); } bo.Finish(); @@ -259,13 +259,13 @@ void TStreamsTest::TestBufferStream() { TBufferStream stream; TString s = "test"; - stream.Write(s.data(), s.size()); + stream.Write(s.data(), s.size()); char buf[5]; size_t bytesRead = stream.Read(buf, 4); UNIT_ASSERT_EQUAL(4, bytesRead); - UNIT_ASSERT_EQUAL(0, strncmp(s.data(), buf, 4)); + UNIT_ASSERT_EQUAL(0, strncmp(s.data(), buf, 4)); - stream.Write(s.data(), s.size()); + stream.Write(s.data(), s.size()); bytesRead = stream.Read(buf, 2); UNIT_ASSERT_EQUAL(2, bytesRead); UNIT_ASSERT_EQUAL(0, strncmp("te", buf, 2)); @@ -382,9 +382,9 @@ namespace { void TestStreamReadTo(const TString& text, T test) { TStringInput is(text); test(is, "TStringInput"); - TMemoryInput mi(text.data(), text.size()); + TMemoryInput mi(text.data(), text.size()); test(mi, "TMemoryInput"); - TBuffer b(text.data(), text.size()); + TBuffer b(text.data(), text.size()); TBufferInput bi(b); test(bi, "TBufferInput"); TStringInput slave(text); @@ -409,7 +409,7 @@ void TStreamsTest::TestStrokaInput() { TString s; for (ui32 i = 0; i < 100000; ++i) { TVector<char> d(i % 1000, 'a'); - s.append(d.data(), d.size()); + s.append(d.data(), d.size()); s.append('\n'); } TestStreamReadTo(s, ::TestStrokaInput); |