diff options
author | Ruslan Kovalev <ruslan.a.kovalev@gmail.com> | 2022-02-10 16:46:45 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:45 +0300 |
commit | 9123176b341b6f2658cff5132482b8237c1416c8 (patch) | |
tree | 49e222ea1c5804306084bb3ae065bb702625360f /library/cpp/testing/unittest/registar.cpp | |
parent | 59e19371de37995fcb36beb16cd6ec030af960bc (diff) | |
download | ydb-9123176b341b6f2658cff5132482b8237c1416c8.tar.gz |
Restoring authorship annotation for Ruslan Kovalev <ruslan.a.kovalev@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/testing/unittest/registar.cpp')
-rw-r--r-- | library/cpp/testing/unittest/registar.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/library/cpp/testing/unittest/registar.cpp b/library/cpp/testing/unittest/registar.cpp index 7679b6647c..3679b768ed 100644 --- a/library/cpp/testing/unittest/registar.cpp +++ b/library/cpp/testing/unittest/registar.cpp @@ -74,13 +74,13 @@ NUnitTest::TTestBase* ::NUnitTest::NPrivate::GetCurrentTest() { struct TDiffColorizer { NColorizer::TColors Colors; - bool Reverse = false; + bool Reverse = false; - explicit TDiffColorizer(bool reverse = false) - : Reverse(reverse) + explicit TDiffColorizer(bool reverse = false) + : Reverse(reverse) { } - + TString Special(TStringBuf str) const { return ToString(Colors.YellowColor()) + str; } @@ -96,14 +96,14 @@ struct TDiffColorizer { TString Right(TArrayRef<const char> str) const { return ToString(GetRightColor()) + TString(str.begin(), str.end()); } - - TStringBuf GetLeftColor() const { - return Reverse ? Colors.RedColor() : Colors.GreenColor(); - } - - TStringBuf GetRightColor() const { - return Reverse ? Colors.GreenColor() : Colors.RedColor(); - } + + TStringBuf GetLeftColor() const { + return Reverse ? Colors.RedColor() : Colors.GreenColor(); + } + + TStringBuf GetRightColor() const { + return Reverse ? Colors.GreenColor() : Colors.RedColor(); + } }; struct TTraceDiffFormatter { |