aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/testing/unittest/registar.h
diff options
context:
space:
mode:
authornga <nga@yandex-team.ru>2022-02-10 16:48:09 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:09 +0300
commit1f553f46fb4f3c5eec631352cdd900a0709016af (patch)
treea231fba2c03b440becaea6c86a2702d0bfb0336e /library/cpp/testing/unittest/registar.h
parentc4de7efdedc25b49cbea74bd589eecb61b55b60a (diff)
downloadydb-1f553f46fb4f3c5eec631352cdd900a0709016af.tar.gz
Restoring authorship annotation for <nga@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/testing/unittest/registar.h')
-rw-r--r--library/cpp/testing/unittest/registar.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/library/cpp/testing/unittest/registar.h b/library/cpp/testing/unittest/registar.h
index 44517a0092..594e6681e7 100644
--- a/library/cpp/testing/unittest/registar.h
+++ b/library/cpp/testing/unittest/registar.h
@@ -38,7 +38,7 @@ namespace NUnitTest {
void SetCurrentTest(TTestBase*);
TTestBase* GetCurrentTest();
}
-
+
extern bool ShouldColorizeDiff;
extern bool ContinueOnFail;
TString ColoredDiff(TStringBuf s1, TStringBuf s2, const TString& delims = TString(), bool reverse = false);
@@ -122,19 +122,19 @@ namespace NUnitTest {
void Finish(const TFinish& descr);
unsigned GoodTests() const noexcept;
-
+
unsigned FailTests() const noexcept;
unsigned GoodTestsInCurrentUnit() const noexcept;
unsigned FailTestsInCurrentUnit() const noexcept;
- // Should execute test suite?
+ // Should execute test suite?
virtual bool CheckAccess(TString /*name*/, size_t /*num*/);
- // Should execute a test whitin suite?
+ // Should execute a test whitin suite?
virtual bool CheckAccessTest(TString /*suite*/, const char* /*name*/);
-
+
virtual void Run(std::function<void()> f, const TString& /*suite*/, const char* /*name*/, bool /*forceFork*/);
// This process is forked for current test
@@ -157,7 +157,7 @@ namespace NUnitTest {
virtual void OnFinish(const TFinish* /*finish*/);
virtual void OnBeforeTest(const TTest* /*test*/);
-
+
void AddTestError(const TTest& test);
void AddTestFinish(const TTest& test);
@@ -176,7 +176,7 @@ namespace NUnitTest {
virtual ~ITestBaseFactory();
- // name of test suite
+ // name of test suite
virtual TString Name() const noexcept = 0;
virtual TTestBase* ConstructTest() = 0;
@@ -210,9 +210,9 @@ namespace NUnitTest {
protected:
bool CheckAccessTest(const char* test);
-
+
void BeforeTest(const char* func);
-
+
void Finish(const char* func, TTestContext* context);
void AtStart();
@@ -433,7 +433,7 @@ public: \
auto&& failMsg = Sprintf("%s != %s %s", ToString(_a).data(), ToString(_b).data(), (::TStringBuilder() << C).data()); \
UNIT_FAIL_IMPL("strings equal assertion failed", failMsg); \
} \
- } while (false)
+ } while (false)
#define UNIT_ASSERT_STRINGS_EQUAL(A, B) UNIT_ASSERT_STRINGS_EQUAL_C(A, B, "")
@@ -702,7 +702,7 @@ public: \
return false;
}
}
-
+
//values
#define UNIT_ASSERT_VALUES_EQUAL_IMPL(A, B, C, EQflag, EQstr, NEQstr) \
do { \
@@ -720,7 +720,7 @@ public: \
UNIT_FAIL_IMPL("assertion failed", failMsg); \
} \
} while (false)
-
+
#define UNIT_ASSERT_VALUES_EQUAL_C(A, B, C) \
UNIT_ASSERT_VALUES_EQUAL_IMPL(A, B, C, true, "==", "!=")