diff options
author | bkuchin <bkuchin@yandex-team.ru> | 2022-02-10 16:46:29 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:29 +0300 |
commit | f43ab775d197d300eb67bd4497632b909cd7c2a5 (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/testing/unittest/simple.h | |
parent | 2c6ec4e7012419466156d8eb2394a888cccaa800 (diff) | |
download | ydb-f43ab775d197d300eb67bd4497632b909cd7c2a5.tar.gz |
Restoring authorship annotation for <bkuchin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/testing/unittest/simple.h')
-rw-r--r-- | library/cpp/testing/unittest/simple.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/testing/unittest/simple.h b/library/cpp/testing/unittest/simple.h index 7fd97e8d16..2a5300d886 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(); |