aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/yexception_ut.cpp
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:23 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:23 +0300
commit706b83ed7de5a473436620367af31fc0ceecde07 (patch)
tree103305d30dec77e8f6367753367f59b3cd68f9f1 /util/generic/yexception_ut.cpp
parent918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff)
downloadydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'util/generic/yexception_ut.cpp')
-rw-r--r--util/generic/yexception_ut.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/util/generic/yexception_ut.cpp b/util/generic/yexception_ut.cpp
index cb3e29fed8..cbdab1740c 100644
--- a/util/generic/yexception_ut.cpp
+++ b/util/generic/yexception_ut.cpp
@@ -39,7 +39,7 @@ class TExceptionTest: public TTestBase {
UNIT_TEST_SUITE(TExceptionTest);
UNIT_TEST_EXCEPTION(TestException, yexception)
UNIT_TEST_EXCEPTION(TestLineInfo, yexception)
- UNIT_TEST(TestCurrentExceptionMessageWhenThereisNoException)
+ UNIT_TEST(TestCurrentExceptionMessageWhenThereisNoException)
UNIT_TEST(TestFormat1)
UNIT_TEST(TestRaise1)
UNIT_TEST(TestVirtuality)
@@ -70,15 +70,15 @@ private:
}
}
- inline void TestCurrentExceptionMessageWhenThereisNoException() {
- UNIT_ASSERT(CurrentExceptionMessage() == "(NO EXCEPTION)");
- }
-
+ inline void TestCurrentExceptionMessageWhenThereisNoException() {
+ UNIT_ASSERT(CurrentExceptionMessage() == "(NO EXCEPTION)");
+ }
+
inline void TestBackTrace() {
try {
ythrow TWithBackTrace<TIoSystemError>() << "test";
} catch (...) {
- UNIT_ASSERT(CurrentExceptionMessage().find('\n') != TString::npos);
+ UNIT_ASSERT(CurrentExceptionMessage().find('\n') != TString::npos);
return;
}
@@ -212,14 +212,14 @@ private:
throw yexception() << 1 << " qw " << 12.1;
UNIT_ASSERT(false);
} catch (...) {
- const TString err = CurrentExceptionMessage();
+ const TString err = CurrentExceptionMessage();
UNIT_ASSERT(err.Contains("1 qw 12.1"));
}
}
static inline void CheckCurrentExceptionContains(const char* message) {
- TString err = CurrentExceptionMessage();
+ TString err = CurrentExceptionMessage();
SubstGlobal(err, '\\', '/'); // remove backslashes from path in message
UNIT_ASSERT(err.Contains(message));
}