diff options
author | yazevnul <yazevnul@yandex-team.ru> | 2022-02-10 16:46:48 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:48 +0300 |
commit | 9abfb1a53b7f7b791444d1378e645d8fad9b06ed (patch) | |
tree | 49e222ea1c5804306084bb3ae065bb702625360f /util/stream/ios_ut.cpp | |
parent | 8cbc307de0221f84c80c42dcbe07d40727537e2c (diff) | |
download | ydb-9abfb1a53b7f7b791444d1378e645d8fad9b06ed.tar.gz |
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/stream/ios_ut.cpp')
-rw-r--r-- | util/stream/ios_ut.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/util/stream/ios_ut.cpp b/util/stream/ios_ut.cpp index 30ae17cdf4..139f4296e5 100644 --- a/util/stream/ios_ut.cpp +++ b/util/stream/ios_ut.cpp @@ -1,7 +1,7 @@ -#include "output.h" +#include "output.h" #include "tokenizer.h" -#include "buffer.h" -#include "buffered.h" +#include "buffer.h" +#include "buffered.h" #include "walk.h" #include <library/cpp/testing/unittest/registar.h> @@ -169,7 +169,7 @@ void TStreamsTest::TestMemoryStream() { } } -class TMyStringOutput: public IOutputStream { +class TMyStringOutput: public IOutputStream { public: inline TMyStringOutput(TString& s, size_t buflen) noexcept : S_(s) @@ -279,7 +279,7 @@ void TStreamsTest::TestBufferStream() { } namespace { - class TStringListInput: public IWalkInput { + class TStringListInput: public IWalkInput { public: TStringListInput(const TVector<TString>& data) : Data_(data) @@ -331,7 +331,7 @@ namespace { "\rone two", "123", "\t\r "}; - void TestStreamReadTo1(IInputStream& input, const char* comment) { + void TestStreamReadTo1(IInputStream& input, const char* comment) { TString tmp; input.ReadTo(tmp, 'c'); UNIT_ASSERT_VALUES_EQUAL_C(tmp, "111a222b333", comment); @@ -347,7 +347,7 @@ namespace { UNIT_ASSERT_VALUES_EQUAL_C(tmp, "66f", comment); } - void TestStreamReadTo2(IInputStream& input, const char* comment) { + void TestStreamReadTo2(IInputStream& input, const char* comment) { TString s; size_t i = 0; while (input.ReadLine(s)) { @@ -357,17 +357,17 @@ namespace { } } - void TestStreamReadTo3(IInputStream& input, const char* comment) { + void TestStreamReadTo3(IInputStream& input, const char* comment) { UNIT_ASSERT_VALUES_EQUAL_C(input.ReadLine(), "111a222b333c444d555e666f", comment); } - void TestStreamReadTo4(IInputStream& input, const char* comment) { + void TestStreamReadTo4(IInputStream& input, const char* comment) { UNIT_ASSERT_VALUES_EQUAL_C(input.ReadTo('\0'), "one", comment); UNIT_ASSERT_VALUES_EQUAL_C(input.ReadTo('\0'), "two", comment); UNIT_ASSERT_VALUES_EQUAL_C(input.ReadTo('\0'), "three", comment); } - void TestStrokaInput(IInputStream& input, const char* comment) { + void TestStrokaInput(IInputStream& input, const char* comment) { TString line; ui32 i = 0; TInstant start = Now(); @@ -392,7 +392,7 @@ namespace { test(bdi, "TBufferedInput"); TVector<TString> lst(1, text); TStringListInput sli(lst); - test(sli, "IWalkInput"); + test(sli, "IWalkInput"); } } @@ -422,7 +422,7 @@ void TStreamsTest::TestWtrokaInput() { size_t i = 0; while (is.ReadLine(w)) { - UNIT_ASSERT(i < Y_ARRAY_SIZE(Expected)); + UNIT_ASSERT(i < Y_ARRAY_SIZE(Expected)); UNIT_ASSERT_VALUES_EQUAL(w, UTF8ToWide(Expected[i])); ++i; |