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/input_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/input_ut.cpp')
-rw-r--r-- | util/stream/input_ut.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/util/stream/input_ut.cpp b/util/stream/input_ut.cpp index 63e2d08c88..4a93f5458e 100644 --- a/util/stream/input_ut.cpp +++ b/util/stream/input_ut.cpp @@ -21,7 +21,7 @@ public: } template <typename FuncType> - void ForInput(const TStringBuf text, const FuncType& func) { + void ForInput(const TStringBuf text, const FuncType& func) { TFile tempFile(TFile::Temporary("input_ut")); tempFile.Write(text.data(), text.size()); tempFile.FlushData(); @@ -41,7 +41,7 @@ private: int StdInCopy_; }; -class TNoInput: public IInputStream { +class TNoInput: public IInputStream { public: TNoInput(ui64 size) : Size_(size) @@ -59,7 +59,7 @@ private: ui64 Size_; }; -class TNoOutput: public IOutputStream { +class TNoOutput: public IOutputStream { public: TNoOutput() = default; @@ -68,7 +68,7 @@ protected: } }; -class TSimpleStringInput: public IInputStream { +class TSimpleStringInput: public IInputStream { public: TSimpleStringInput(const TString& string) : String_(string) @@ -77,7 +77,7 @@ public: protected: size_t DoRead(void* buf, size_t len) override { - Y_ASSERT(len != 0); + Y_ASSERT(len != 0); if (String_.empty()) { return 0; @@ -92,8 +92,8 @@ private: TString String_; }; -Y_UNIT_TEST_SUITE(TInputTest) { - Y_UNIT_TEST(BigTransfer) { +Y_UNIT_TEST_SUITE(TInputTest) { + Y_UNIT_TEST(BigTransfer) { ui64 size = 1024ull * 1024ull * 1024ull * 5; TNoInput input(size); TNoOutput output; @@ -103,7 +103,7 @@ Y_UNIT_TEST_SUITE(TInputTest) { UNIT_ASSERT_VALUES_EQUAL(transferred, size); } - Y_UNIT_TEST(TestReadTo) { + Y_UNIT_TEST(TestReadTo) { /* This one tests default implementation of ReadTo. */ TSimpleStringInput in("0123456789abc"); @@ -117,7 +117,7 @@ Y_UNIT_TEST_SUITE(TInputTest) { UNIT_ASSERT_VALUES_EQUAL(t, "89abc"); } - Y_UNIT_TEST(TestReadLine) { + Y_UNIT_TEST(TestReadLine) { TSimpleStringInput in("1\n22\n333"); TString t; @@ -131,7 +131,7 @@ Y_UNIT_TEST_SUITE(TInputTest) { UNIT_ASSERT_VALUES_EQUAL(t, "333"); } - Y_UNIT_TEST(TestStdInReadTo) { + Y_UNIT_TEST(TestStdInReadTo) { std::pair<std::pair<TStringBuf, char>, TStringBuf> testPairs[] = { {{"", '\n'}, ""}, {{"\n", '\n'}, ""}, |