diff options
| author | Dmitry Kopylov <[email protected]> | 2022-02-10 16:48:18 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:48:18 +0300 | 
| commit | 7230275728d34873cba1ba78bb68669b0c5faa31 (patch) | |
| tree | b222e5ac2e2e98872661c51ccceee5da0d291e13 /library/cpp/testing/unittest/registar.h | |
| parent | b2f5101486cc0de2e979c8ba9ada2109785bf5fd (diff) | |
Restoring authorship annotation for Dmitry Kopylov <[email protected]>. Commit 2 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 12de69287d1..44517a00924 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(); | 
