aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/yexception_ut.cpp
diff options
context:
space:
mode:
authorsavin97 <savin97@yandex-team.ru>2022-02-10 16:52:08 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:52:08 +0300
commitbd038e90fb042b0ec259494b0b5530c1527289f2 (patch)
treeab7fbbf3253d4c0e2793218f09378908beb025fb /util/generic/yexception_ut.cpp
parent6dda96acccc5db795315421605ba0451b8d41b16 (diff)
downloadydb-bd038e90fb042b0ec259494b0b5530c1527289f2.tar.gz
Restoring authorship annotation for <savin97@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/yexception_ut.cpp')
-rw-r--r--util/generic/yexception_ut.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/util/generic/yexception_ut.cpp b/util/generic/yexception_ut.cpp
index 7f243f751b..cb3e29fed8 100644
--- a/util/generic/yexception_ut.cpp
+++ b/util/generic/yexception_ut.cpp
@@ -51,7 +51,7 @@ class TExceptionTest: public TTestBase {
UNIT_TEST(TestRethrowAppend)
UNIT_TEST(TestMacroOverload)
UNIT_TEST(TestMessageCrop)
- UNIT_TEST(TestTIoSystemErrorSpecialMethods)
+ UNIT_TEST(TestTIoSystemErrorSpecialMethods)
UNIT_TEST(TestCurrentExceptionTypeNameMethod)
UNIT_TEST_SUITE_END();
@@ -296,29 +296,29 @@ private:
UNIT_ASSERT_EQUAL(e.AsStrBuf(), s.substr(0, tmp.Size() - 1));
}
}
-
- void TestTIoSystemErrorSpecialMethods() {
- TString testStr{"systemError"};
- TIoSystemError err;
- err << testStr;
- UNIT_ASSERT(err.AsStrBuf().Contains(testStr));
-
- TIoSystemError errCopy{err};
- UNIT_ASSERT(err.AsStrBuf().Contains(testStr));
- UNIT_ASSERT(errCopy.AsStrBuf().Contains(testStr));
-
- TIoSystemError errAssign;
- errAssign = err;
- UNIT_ASSERT(err.AsStrBuf().Contains(testStr));
- UNIT_ASSERT(errAssign.AsStrBuf().Contains(testStr));
-
- TIoSystemError errMove{std::move(errCopy)};
- UNIT_ASSERT(errMove.AsStrBuf().Contains(testStr));
-
- TIoSystemError errMoveAssign;
- errMoveAssign = std::move(errMove);
- UNIT_ASSERT(errMoveAssign.AsStrBuf().Contains(testStr));
- }
+
+ void TestTIoSystemErrorSpecialMethods() {
+ TString testStr{"systemError"};
+ TIoSystemError err;
+ err << testStr;
+ UNIT_ASSERT(err.AsStrBuf().Contains(testStr));
+
+ TIoSystemError errCopy{err};
+ UNIT_ASSERT(err.AsStrBuf().Contains(testStr));
+ UNIT_ASSERT(errCopy.AsStrBuf().Contains(testStr));
+
+ TIoSystemError errAssign;
+ errAssign = err;
+ UNIT_ASSERT(err.AsStrBuf().Contains(testStr));
+ UNIT_ASSERT(errAssign.AsStrBuf().Contains(testStr));
+
+ TIoSystemError errMove{std::move(errCopy)};
+ UNIT_ASSERT(errMove.AsStrBuf().Contains(testStr));
+
+ TIoSystemError errMoveAssign;
+ errMoveAssign = std::move(errMove);
+ UNIT_ASSERT(errMoveAssign.AsStrBuf().Contains(testStr));
+ }
inline void TestCurrentExceptionTypeNameMethod() {
//Basic test of getting the correct exception type name.
try {