aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/testing/unittest/simple.h
diff options
context:
space:
mode:
authorbkuchin <bkuchin@yandex-team.ru>2022-02-10 16:46:29 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:29 +0300
commit2c6ec4e7012419466156d8eb2394a888cccaa800 (patch)
tree9e80d045a72a2eb2c74ea86becc855a1fa35dcf7 /library/cpp/testing/unittest/simple.h
parent1c8fad4dbdab65ce5d4d0740cd02f90c069b4f17 (diff)
downloadydb-2c6ec4e7012419466156d8eb2394a888cccaa800.tar.gz
Restoring authorship annotation for <bkuchin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/testing/unittest/simple.h')
-rw-r--r--library/cpp/testing/unittest/simple.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/testing/unittest/simple.h b/library/cpp/testing/unittest/simple.h
index 2a5300d886..7fd97e8d16 100644
--- a/library/cpp/testing/unittest/simple.h
+++ b/library/cpp/testing/unittest/simple.h
@@ -4,7 +4,7 @@
namespace NUnitTest {
struct TSimpleTestExecutor: public TTestBase {
- typedef TVector<TBaseTestCase> TTests;
+ typedef TVector<TBaseTestCase> TTests;
TTests Tests;
@@ -12,25 +12,25 @@ namespace NUnitTest {
AtStart();
for (typename TTests::iterator i = Tests.begin(), ie = Tests.end(); i != ie; ++i) {
- if (!CheckAccessTest(i->Name_)) {
+ if (!CheckAccessTest(i->Name_)) {
continue;
}
TTestContext context(this->Processor());
try {
- BeforeTest(i->Name_);
+ BeforeTest(i->Name_);
{
TCleanUp cleaner(this);
- TTestBase::Run([i, &context] { i->Body_(context); }, Name(), i->Name_, i->ForceFork_);
+ TTestBase::Run([i, &context] { i->Body_(context); }, Name(), i->Name_, i->ForceFork_);
}
} catch (const ::NUnitTest::TAssertException&) {
} catch (const yexception& e) {
- CATCH_REACTION_BT(i->Name_, e, &context);
+ CATCH_REACTION_BT(i->Name_, e, &context);
} catch (const std::exception& e) {
- CATCH_REACTION(i->Name_, e, &context);
+ CATCH_REACTION(i->Name_, e, &context);
} catch (...) {
AddError("non-std exception!", &context);
}
- Finish(i->Name_, &context);
+ Finish(i->Name_, &context);
}
AtEnd();