diff options
author | Vasily Gerasimov <UgnineSirdis@gmail.com> | 2022-02-10 16:49:10 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:10 +0300 |
commit | 1eb755fbca92172a6aec2f57371b2b3a19dfab43 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/generic/yexception_ut.cpp | |
parent | 6cdc8f140213c595e4ad38bc3d97fcef1146b8c3 (diff) | |
download | ydb-1eb755fbca92172a6aec2f57371b2b3a19dfab43.tar.gz |
Restoring authorship annotation for Vasily Gerasimov <UgnineSirdis@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'util/generic/yexception_ut.cpp')
-rw-r--r-- | util/generic/yexception_ut.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/util/generic/yexception_ut.cpp b/util/generic/yexception_ut.cpp index f8560cde23..cb3e29fed8 100644 --- a/util/generic/yexception_ut.cpp +++ b/util/generic/yexception_ut.cpp @@ -1,11 +1,11 @@ #include "yexception.h" static inline void Throw1DontMove() { - ythrow yexception() << "blabla"; // don't move this line + ythrow yexception() << "blabla"; // don't move this line } static inline void Throw2DontMove() { - ythrow yexception() << 1 << " qw " << 12.1; // don't move this line + ythrow yexception() << 1 << " qw " << 12.1; // don't move this line } #include <library/cpp/testing/unittest/registar.h> @@ -14,7 +14,7 @@ static inline void Throw2DontMove() { #include <util/memory/tempbuf.h> #include <util/random/mersenne.h> #include <util/stream/output.h> -#include <util/string/subst.h> +#include <util/string/subst.h> #include "yexception_ut.h" #include "bt_exception.h" @@ -218,18 +218,18 @@ private: } } - static inline void CheckCurrentExceptionContains(const char* message) { + static inline void CheckCurrentExceptionContains(const char* message) { TString err = CurrentExceptionMessage(); - SubstGlobal(err, '\\', '/'); // remove backslashes from path in message - UNIT_ASSERT(err.Contains(message)); - } - + SubstGlobal(err, '\\', '/'); // remove backslashes from path in message + UNIT_ASSERT(err.Contains(message)); + } + inline void TestRaise1() { try { Throw2DontMove(); UNIT_ASSERT(false); } catch (...) { - CheckCurrentExceptionContains("util/generic/yexception_ut.cpp:8: 1 qw 12.1"); + CheckCurrentExceptionContains("util/generic/yexception_ut.cpp:8: 1 qw 12.1"); } } @@ -240,9 +240,9 @@ private: inline void TestLineInfo() { try { Throw1DontMove(); - UNIT_ASSERT(false); + UNIT_ASSERT(false); } catch (...) { - CheckCurrentExceptionContains("util/generic/yexception_ut.cpp:4: blabla"); + CheckCurrentExceptionContains("util/generic/yexception_ut.cpp:4: blabla"); throw; } |