aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/yexception_ut.cpp
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:25 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:25 +0300
commit344ea37b4a345701ab0e67de2266a1c1bd7baf2d (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/generic/yexception_ut.cpp
parent706b83ed7de5a473436620367af31fc0ceecde07 (diff)
downloadydb-344ea37b4a345701ab0e67de2266a1c1bd7baf2d.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 2 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 cbdab1740cf..cb3e29fed84 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));
}