aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/testing
diff options
context:
space:
mode:
authorgleb-kov <gleb-kov@yandex-team.ru>2022-02-10 16:46:22 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:22 +0300
commit918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/testing
parent7b1cfa32681104c8468c5824c79fd80d9a88a579 (diff)
downloadydb-918e8a1574070d0ec733f0b76cfad8f8892ad2e5.tar.gz
Restoring authorship annotation for <gleb-kov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/testing')
-rw-r--r--library/cpp/testing/gtest_extensions/assertions.cpp4
-rw-r--r--library/cpp/testing/unittest/gtest.cpp4
-rw-r--r--library/cpp/testing/unittest/registar.cpp2
-rw-r--r--library/cpp/testing/unittest/registar.h6
4 files changed, 8 insertions, 8 deletions
diff --git a/library/cpp/testing/gtest_extensions/assertions.cpp b/library/cpp/testing/gtest_extensions/assertions.cpp
index 1163da4189..f390409d1b 100644
--- a/library/cpp/testing/gtest_extensions/assertions.cpp
+++ b/library/cpp/testing/gtest_extensions/assertions.cpp
@@ -2,12 +2,12 @@
#include <util/string/builder.h>
#include <util/string/split.h>
-#include <util/system/type_name.h>
+#include <util/system/type_name.h>
namespace NGTest::NInternal {
namespace {
void FormatActual(const std::exception& err, const TBackTrace* bt, TStringBuilder& out) {
- out << "an exception of type " << TypeName(err) << " "
+ out << "an exception of type " << TypeName(err) << " "
<< "with message " << TString(err.what()).Quote() << ".";
if (bt) {
out << "\n Trace: ";
diff --git a/library/cpp/testing/unittest/gtest.cpp b/library/cpp/testing/unittest/gtest.cpp
index 8be1164afe..ebad1ea4d6 100644
--- a/library/cpp/testing/unittest/gtest.cpp
+++ b/library/cpp/testing/unittest/gtest.cpp
@@ -3,7 +3,7 @@
#include <util/generic/map.h>
#include <util/generic/vector.h>
-#include <util/system/type_name.h>
+#include <util/system/type_name.h>
using namespace NUnitTest;
using namespace NUnitTest::NPrivate;
@@ -19,7 +19,7 @@ namespace {
}
TString TypeId() const override {
- return TypeName(*this) + "-" + MyName;
+ return TypeName(*this) + "-" + MyName;
}
TString Name() const noexcept override {
diff --git a/library/cpp/testing/unittest/registar.cpp b/library/cpp/testing/unittest/registar.cpp
index a51f694076..3679b768ed 100644
--- a/library/cpp/testing/unittest/registar.cpp
+++ b/library/cpp/testing/unittest/registar.cpp
@@ -299,7 +299,7 @@ NUnitTest::TTestBase::TTestBase() noexcept
NUnitTest::TTestBase::~TTestBase() = default;
TString NUnitTest::TTestBase::TypeId() const {
- return TypeName(*this);
+ return TypeName(*this);
}
void NUnitTest::TTestBase::SetUp() {
diff --git a/library/cpp/testing/unittest/registar.h b/library/cpp/testing/unittest/registar.h
index 18652a5178..44517a0092 100644
--- a/library/cpp/testing/unittest/registar.h
+++ b/library/cpp/testing/unittest/registar.h
@@ -17,7 +17,7 @@
#include <util/string/printf.h>
#include <util/system/defaults.h>
-#include <util/system/type_name.h>
+#include <util/system/type_name.h>
#include <util/system/spinlock.h>
#include <util/system/src_location.h>
@@ -282,8 +282,8 @@ private: \
this->AtStart();
#ifndef UT_SKIP_EXCEPTIONS
-#define CATCH_REACTION(FN, e, context) this->AddError(("(" + TypeName(e) + ") " + e.what()).data(), context)
-#define CATCH_REACTION_BT(FN, e, context) this->AddError(("(" + TypeName(e) + ") " + e.what()).data(), (e.BackTrace() ? e.BackTrace()->PrintToString() : TString()), context)
+#define CATCH_REACTION(FN, e, context) this->AddError(("(" + TypeName(e) + ") " + e.what()).data(), context)
+#define CATCH_REACTION_BT(FN, e, context) this->AddError(("(" + TypeName(e) + ") " + e.what()).data(), (e.BackTrace() ? e.BackTrace()->PrintToString() : TString()), context)
#else
#define CATCH_REACTION(FN, e, context) throw
#define CATCH_REACTION_BT(FN, e, context) throw