aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/testing/unittest
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.ru>2022-02-10 16:45:12 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:12 +0300
commit49116032d905455a7b1c994e4a696afc885c1e71 (patch)
treebe835aa92c6248212e705f25388ebafcf84bc7a1 /library/cpp/testing/unittest
parent4e839db24a3bbc9f1c610c43d6faaaa99824dcca (diff)
downloadydb-49116032d905455a7b1c994e4a696afc885c1e71.tar.gz
Restoring authorship annotation for <thegeorg@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/testing/unittest')
-rw-r--r--library/cpp/testing/unittest/registar.cpp26
-rw-r--r--library/cpp/testing/unittest/registar.h10
-rw-r--r--library/cpp/testing/unittest/tests_data.cpp6
-rw-r--r--library/cpp/testing/unittest/tests_data.h4
-rw-r--r--library/cpp/testing/unittest/utmain.cpp2
-rw-r--r--library/cpp/testing/unittest/ya.make4
6 files changed, 26 insertions, 26 deletions
diff --git a/library/cpp/testing/unittest/registar.cpp b/library/cpp/testing/unittest/registar.cpp
index c678772cc5..3679b768ed 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();
diff --git a/library/cpp/testing/unittest/registar.h b/library/cpp/testing/unittest/registar.h
index f437f201d5..44517a0092 100644
--- a/library/cpp/testing/unittest/registar.h
+++ b/library/cpp/testing/unittest/registar.h
@@ -270,7 +270,7 @@ private: \
\
public: \
static TString StaticName() noexcept { \
- return TypeName<N>(); \
+ return TypeName<N>(); \
} \
\
private: \
@@ -403,13 +403,13 @@ public: \
const auto _ed = (E); \
const auto _ad = (A); \
const auto _dd = (D); \
- if (std::isnan((long double)_ed) && !std::isnan((long double)_ad)) { \
- const auto _as = ToString((long double)_ad); \
+ if (std::isnan((long double)_ed) && !std::isnan((long double)_ad)) { \
+ const auto _as = ToString((long double)_ad); \
auto&& failMsg = Sprintf("expected NaN, got %s %s", _as.data(), (::TStringBuilder() << C).data()); \
UNIT_FAIL_IMPL("assertion failure", failMsg); \
} \
- if (!std::isnan((long double)_ed) && std::isnan((long double)_ad)) { \
- const auto _es = ToString((long double)_ed); \
+ if (!std::isnan((long double)_ed) && std::isnan((long double)_ad)) { \
+ const auto _es = ToString((long double)_ed); \
auto&& failMsg = Sprintf("expected %s, got NaN %s", _es.data(), (::TStringBuilder() << C).data()); \
UNIT_FAIL_IMPL("assertion failure", failMsg); \
} \
diff --git a/library/cpp/testing/unittest/tests_data.cpp b/library/cpp/testing/unittest/tests_data.cpp
index 632c098af9..b51cbc4b87 100644
--- a/library/cpp/testing/unittest/tests_data.cpp
+++ b/library/cpp/testing/unittest/tests_data.cpp
@@ -98,7 +98,7 @@ ui16 TPortManager::GetPortsRange(const ui16 startPort, const ui16 range) {
return Impl_->GetPortsRange(startPort, range);
}
-ui16 GetRandomPort() {
+ui16 GetRandomPort() {
TPortManager* pm = Singleton<TPortManager>(false);
- return pm->GetPort();
-}
+ return pm->GetPort();
+}
diff --git a/library/cpp/testing/unittest/tests_data.h b/library/cpp/testing/unittest/tests_data.h
index 4b06b24a1a..6536bc1ae6 100644
--- a/library/cpp/testing/unittest/tests_data.h
+++ b/library/cpp/testing/unittest/tests_data.h
@@ -50,5 +50,5 @@ private:
class TPortManagerImpl;
THolder<TPortManagerImpl> Impl_;
};
-
-ui16 GetRandomPort();
+
+ui16 GetRandomPort();
diff --git a/library/cpp/testing/unittest/utmain.cpp b/library/cpp/testing/unittest/utmain.cpp
index 3a46c7d82c..305bc6b40f 100644
--- a/library/cpp/testing/unittest/utmain.cpp
+++ b/library/cpp/testing/unittest/utmain.cpp
@@ -637,7 +637,7 @@ static void GracefulShutdownHandler(int) {
}
#endif
-int NUnitTest::RunMain(int argc, char** argv) {
+int NUnitTest::RunMain(int argc, char** argv) {
#if defined(_linux_) && defined(CLANG_COVERAGE)
{
struct sigaction sa;
diff --git a/library/cpp/testing/unittest/ya.make b/library/cpp/testing/unittest/ya.make
index c82d31838d..aaa4f2ba85 100644
--- a/library/cpp/testing/unittest/ya.make
+++ b/library/cpp/testing/unittest/ya.make
@@ -1,7 +1,7 @@
LIBRARY()
-PROVIDES(test_framework)
-
+PROVIDES(test_framework)
+
OWNER(
pg
galaxycrab