aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/yexception_ut.cpp
diff options
context:
space:
mode:
authordmasloff <dmasloff@yandex-team.com>2024-08-17 23:33:42 +0300
committerdmasloff <dmasloff@yandex-team.com>2024-08-17 23:43:45 +0300
commit69340f4614e853b9319df4b454ab7497711ee3cd (patch)
tree9902a3e2f58fe0bd9a157e7b51ad1cc52efa5744 /util/generic/yexception_ut.cpp
parenta905b53ec410defd5d2c40031ef8b34bb50a29f8 (diff)
downloadydb-69340f4614e853b9319df4b454ab7497711ee3cd.tar.gz
Set SpacesInLineCommentPrefix to 1 in /util
Set SpacesInLineCommentPrefix to 1 in /util 3853f9ec5143722c1bebd8dc0ffc9b61a6c17657
Diffstat (limited to 'util/generic/yexception_ut.cpp')
-rw-r--r--util/generic/yexception_ut.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/util/generic/yexception_ut.cpp b/util/generic/yexception_ut.cpp
index 3c89a487db..b3811ceb48 100644
--- a/util/generic/yexception_ut.cpp
+++ b/util/generic/yexception_ut.cpp
@@ -377,13 +377,13 @@ private:
UNIT_ASSERT(errMoveAssign.AsStrBuf().Contains(testStr));
}
inline void TestCurrentExceptionTypeNameMethod() {
- //Basic test of getting the correct exception type name.
+ // Basic test of getting the correct exception type name.
try {
throw std::runtime_error("Test Runtime Error Exception");
} catch (...) {
UNIT_ASSERT_STRING_CONTAINS(CurrentExceptionTypeName(), "std::runtime_error");
}
- //Test when exception has an unusual type. Under Linux it should return "int" and under other OSs "unknown type".
+ // Test when exception has an unusual type. Under Linux it should return "int" and under other OSs "unknown type".
try {
throw int(1);
} catch (...) {
@@ -393,7 +393,7 @@ private:
UNIT_ASSERT_VALUES_EQUAL(CurrentExceptionTypeName(), "unknown type");
#endif
}
- //Test when the caught exception is rethrown with std::rethrow_exception.
+ // Test when the caught exception is rethrown with std::rethrow_exception.
try {
throw std::logic_error("Test Logic Error Exception");
} catch (...) {
@@ -403,8 +403,8 @@ private:
UNIT_ASSERT_STRING_CONTAINS(CurrentExceptionTypeName(), "std::logic_error");
}
}
- //Test when the caught exception is rethrown with throw; .
- //This test is different from the previous one because of the interaction with cxxabi specifics.
+ // Test when the caught exception is rethrown with throw; .
+ // This test is different from the previous one because of the interaction with cxxabi specifics.
try {
throw std::bad_alloc();
} catch (...) {
@@ -429,7 +429,7 @@ private:
#endif
}
}
- //Test when int is rethrown with throw; .
+ // Test when int is rethrown with throw; .
try {
throw int(1);
} catch (...) {