aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/testing/unittest/registar.h
diff options
context:
space:
mode:
authormyrrc <myrrc@yandex-team.ru>2022-02-10 16:50:05 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:05 +0300
commit7a6e12b038f16b8bc4b7e77c2a2e08aa86ef7dc9 (patch)
treeb495213545637c65e9ecc0b3fdfbfa649a3027fa /library/cpp/testing/unittest/registar.h
parent694fb2daa19ebb6642b93a8e94bd548b621b76df (diff)
downloadydb-7a6e12b038f16b8bc4b7e77c2a2e08aa86ef7dc9.tar.gz
Restoring authorship annotation for <myrrc@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/testing/unittest/registar.h')
-rw-r--r--library/cpp/testing/unittest/registar.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/library/cpp/testing/unittest/registar.h b/library/cpp/testing/unittest/registar.h
index 44517a0092..454e77a980 100644
--- a/library/cpp/testing/unittest/registar.h
+++ b/library/cpp/testing/unittest/registar.h
@@ -627,23 +627,23 @@ public: \
// Assert that a specific exception is thrown
#define UNIT_ASSERT_EXCEPTION(A, E) UNIT_ASSERT_EXCEPTION_C(A, E, "")
-#define UNIT_ASSERT_NO_EXCEPTION_RESULT_C(A, C) \
- [&] () mutable -> decltype(A) { \
- static_assert(!std::is_void_v<decltype(A)>); \
- try { return (A); } \
- catch (const ::NUnitTest::TAssertException&) { throw; } \
- catch (...) { \
- UNIT_FAIL_IMPL( \
- "exception-free assertion failed", \
- Sprintf("%s throws %s\nException message: %s", \
- #A, (::TStringBuilder() << C).data(), \
- CurrentExceptionMessage().data())); \
- return decltype(A){}; \
- } \
- }()
-
-#define UNIT_ASSERT_NO_EXCEPTION_RESULT(A) UNIT_ASSERT_NO_EXCEPTION_RESULT_C(A, "")
-
+#define UNIT_ASSERT_NO_EXCEPTION_RESULT_C(A, C) \
+ [&] () mutable -> decltype(A) { \
+ static_assert(!std::is_void_v<decltype(A)>); \
+ try { return (A); } \
+ catch (const ::NUnitTest::TAssertException&) { throw; } \
+ catch (...) { \
+ UNIT_FAIL_IMPL( \
+ "exception-free assertion failed", \
+ Sprintf("%s throws %s\nException message: %s", \
+ #A, (::TStringBuilder() << C).data(), \
+ CurrentExceptionMessage().data())); \
+ return decltype(A){}; \
+ } \
+ }()
+
+#define UNIT_ASSERT_NO_EXCEPTION_RESULT(A) UNIT_ASSERT_NO_EXCEPTION_RESULT_C(A, "")
+
#define UNIT_ASSERT_NO_EXCEPTION_C(A, C) \
do { \
try { \