diff options
author | Alexander Fokin <apfokin@gmail.com> | 2022-02-10 16:45:38 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:38 +0300 |
commit | 863a59a65247c24db7cb06789bc5cf79d04da32f (patch) | |
tree | 139dc000c8cd4a40f5659e421b7c75135d080307 /library/cpp/dbg_output | |
parent | f64e95a9eb9ab03240599eb9581c5a9102426a96 (diff) | |
download | ydb-863a59a65247c24db7cb06789bc5cf79d04da32f.tar.gz |
Restoring authorship annotation for Alexander Fokin <apfokin@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/dbg_output')
-rw-r--r-- | library/cpp/dbg_output/dumpers.h | 2 | ||||
-rw-r--r-- | library/cpp/dbg_output/engine.h | 4 | ||||
-rw-r--r-- | library/cpp/dbg_output/ut/dbg_output_ut.cpp | 10 |
3 files changed, 8 insertions, 8 deletions
diff --git a/library/cpp/dbg_output/dumpers.h b/library/cpp/dbg_output/dumpers.h index 4868e97da0..ecef242087 100644 --- a/library/cpp/dbg_output/dumpers.h +++ b/library/cpp/dbg_output/dumpers.h @@ -169,5 +169,5 @@ struct TDumper<std::basic_string<C, T, A>>: public TStrDumper { }; template <class TChar> -struct TDumper<TBasicStringBuf<TChar>>: public TStrDumper { +struct TDumper<TBasicStringBuf<TChar>>: public TStrDumper { }; diff --git a/library/cpp/dbg_output/engine.h b/library/cpp/dbg_output/engine.h index f13c728c39..b5cd4797db 100644 --- a/library/cpp/dbg_output/engine.h +++ b/library/cpp/dbg_output/engine.h @@ -71,11 +71,11 @@ struct TIndentScope { template <class TChar> struct TRawLiteral { - const TBasicStringBuf<TChar> S; + const TBasicStringBuf<TChar> S; }; template <class TChar> -static inline TRawLiteral<TChar> DumpRaw(const TBasicStringBuf<TChar>& s) noexcept { +static inline TRawLiteral<TChar> DumpRaw(const TBasicStringBuf<TChar>& s) noexcept { return {s}; } diff --git a/library/cpp/dbg_output/ut/dbg_output_ut.cpp b/library/cpp/dbg_output/ut/dbg_output_ut.cpp index 7b285c84cb..768f2f202b 100644 --- a/library/cpp/dbg_output/ut/dbg_output_ut.cpp +++ b/library/cpp/dbg_output/ut/dbg_output_ut.cpp @@ -35,7 +35,7 @@ Y_UNIT_TEST_SUITE(TContainerPrintersTest) { Y_UNIT_TEST(TestVectorInt) { TStringStream out; out << DbgDump(TVector<int>({1, 2, 3, 4, 5})); - UNIT_ASSERT_STRINGS_EQUAL(out.Str(), "[1, 2, 3, 4, 5]"); + UNIT_ASSERT_STRINGS_EQUAL(out.Str(), "[1, 2, 3, 4, 5]"); } Y_UNIT_TEST(TestMapCharToCharArray) { @@ -48,7 +48,7 @@ Y_UNIT_TEST_SUITE(TContainerPrintersTest) { out << DbgDump(m); - UNIT_ASSERT_STRINGS_EQUAL(out.Str(), "{'a' -> \"SMALL LETTER A\", 'b' -> (empty)}"); + UNIT_ASSERT_STRINGS_EQUAL(out.Str(), "{'a' -> \"SMALL LETTER A\", 'b' -> (empty)}"); } Y_UNIT_TEST(TestVectorOfVectors) { @@ -57,7 +57,7 @@ Y_UNIT_TEST_SUITE(TContainerPrintersTest) { vec[0].push_back(0); vec[1] = {wchar16('a')}; out << DbgDump(vec); - UNIT_ASSERT_STRINGS_EQUAL(out.Str(), "[[w'\\0'], [w'a']]"); + UNIT_ASSERT_STRINGS_EQUAL(out.Str(), "[[w'\\0'], [w'a']]"); } Y_UNIT_TEST(TestInfinite) { @@ -68,13 +68,13 @@ Y_UNIT_TEST_SUITE(TContainerPrintersTest) { TStringStream out; int a = 1, b = 2; out << LabeledDump(a, b, 1 + 2); - UNIT_ASSERT_STRINGS_EQUAL(out.Str(), "{\"a\": 1, \"b\": 2, \"1 + 2\": 3}"); + UNIT_ASSERT_STRINGS_EQUAL(out.Str(), "{\"a\": 1, \"b\": 2, \"1 + 2\": 3}"); } Y_UNIT_TEST(TestStructDumper) { TStringStream out; out << DbgDump(TMyNS::TMyStruct{3, 4}); - UNIT_ASSERT_STRINGS_EQUAL(out.Str(), "{\"A\": 3, \"B\": 4}"); + UNIT_ASSERT_STRINGS_EQUAL(out.Str(), "{\"A\": 3, \"B\": 4}"); } Y_UNIT_TEST(TestColors) { |