diff options
author | Dmitry Kopylov <kopylovd@gmail.com> | 2022-02-10 16:48:18 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:18 +0300 |
commit | b2f5101486cc0de2e979c8ba9ada2109785bf5fd (patch) | |
tree | affe28b840816b505db0467f2285b01c89c04247 /library/cpp/testing/unittest/registar.h | |
parent | e9b28b5aad71453a4637b70dde02e801e4147a2a (diff) | |
download | ydb-b2f5101486cc0de2e979c8ba9ada2109785bf5fd.tar.gz |
Restoring authorship annotation for Dmitry Kopylov <kopylovd@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/testing/unittest/registar.h')
-rw-r--r-- | library/cpp/testing/unittest/registar.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/library/cpp/testing/unittest/registar.h b/library/cpp/testing/unittest/registar.h index 44517a0092..12de69287d 100644 --- a/library/cpp/testing/unittest/registar.h +++ b/library/cpp/testing/unittest/registar.h @@ -21,8 +21,8 @@ #include <util/system/spinlock.h> #include <util/system/src_location.h> -#include <util/system/rusage.h> - +#include <util/system/rusage.h> + #include <cmath> #include <cstdio> #include <functional> @@ -39,7 +39,7 @@ namespace NUnitTest { TTestBase* GetCurrentTest(); } - extern bool ShouldColorizeDiff; + extern bool ShouldColorizeDiff; extern bool ContinueOnFail; TString ColoredDiff(TStringBuf s1, TStringBuf s2, const TString& delims = TString(), bool reverse = false); TString GetFormatTag(const char* name); @@ -94,12 +94,12 @@ namespace NUnitTest { const TTest* test; const char* msg; TString BackTrace; - TTestContext* Context; + TTestContext* Context; }; struct TFinish { const TTest* test; - TTestContext* Context; + TTestContext* Context; bool Success; }; @@ -186,7 +186,7 @@ namespace NUnitTest { class TTestBase { friend class TTestFactory; - TRusage rusage; + TRusage rusage; public: TTestBase() noexcept; @@ -202,9 +202,9 @@ namespace NUnitTest { virtual void TearDown(); - void AddError(const char* msg, const TString& backtrace = TString(), TTestContext* context = nullptr); + void AddError(const char* msg, const TString& backtrace = TString(), TTestContext* context = nullptr); - void AddError(const char* msg, TTestContext* context); + void AddError(const char* msg, TTestContext* context); void RunAfterTest(std::function<void()> f); // function like atexit to run after current unit test @@ -213,7 +213,7 @@ namespace NUnitTest { void BeforeTest(const char* func); - void Finish(const char* func, TTestContext* context); + void Finish(const char* func, TTestContext* context); void AtStart(); |