diff options
author | thegeorg <thegeorg@yandex-team.ru> | 2022-02-10 16:45:08 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:08 +0300 |
commit | 4e839db24a3bbc9f1c610c43d6faaaa99824dcca (patch) | |
tree | 506dac10f5df94fab310584ee51b24fc5a081c22 /library/cpp/testing/unittest/registar.cpp | |
parent | 2d37894b1b037cf24231090eda8589bbb44fb6fc (diff) | |
download | ydb-4e839db24a3bbc9f1c610c43d6faaaa99824dcca.tar.gz |
Restoring authorship annotation for <thegeorg@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/testing/unittest/registar.cpp')
-rw-r--r-- | library/cpp/testing/unittest/registar.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/library/cpp/testing/unittest/registar.cpp b/library/cpp/testing/unittest/registar.cpp index 3679b768ed..c678772cc5 100644 --- a/library/cpp/testing/unittest/registar.cpp +++ b/library/cpp/testing/unittest/registar.cpp @@ -81,20 +81,20 @@ struct TDiffColorizer { { } - TString Special(TStringBuf str) const { - return ToString(Colors.YellowColor()) + str; + TString Special(TStringBuf str) const { + return ToString(Colors.YellowColor()) + str; } - TString Common(TArrayRef<const char> str) const { - return ToString(Colors.OldColor()) + TString(str.begin(), str.end()); + TString Common(TArrayRef<const char> str) const { + return ToString(Colors.OldColor()) + TString(str.begin(), str.end()); } - TString Left(TArrayRef<const char> str) const { - return ToString(GetLeftColor()) + TString(str.begin(), str.end()); + TString Left(TArrayRef<const char> str) const { + return ToString(GetLeftColor()) + TString(str.begin(), str.end()); } - TString Right(TArrayRef<const char> str) const { - return ToString(GetRightColor()) + TString(str.begin(), str.end()); + TString Right(TArrayRef<const char> str) const { + return ToString(GetRightColor()) + TString(str.begin(), str.end()); } TStringBuf GetLeftColor() const { @@ -114,21 +114,21 @@ struct TTraceDiffFormatter { { } - TString Special(TStringBuf str) const { - return ToString(str); + TString Special(TStringBuf str) const { + return ToString(str); } - TString Common(TArrayRef<const char> str) const { + TString Common(TArrayRef<const char> str) const { return TString(str.begin(), str.end()); } - TString Left(TArrayRef<const char> str) const { + TString Left(TArrayRef<const char> str) const { return NUnitTest::GetFormatTag("good") + TString(str.begin(), str.end()) + NUnitTest::GetResetTag(); } - TString Right(TArrayRef<const char> str) const { + TString Right(TArrayRef<const char> str) const { return NUnitTest::GetFormatTag("bad") + TString(str.begin(), str.end()) + NUnitTest::GetResetTag(); |