aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/testing/unittest/simple.h
diff options
context:
space:
mode:
authornsofya <nsofya@yandex-team.ru>2022-02-10 16:49:52 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:52 +0300
commit3f5911a056d3dbc4bfd724740244a3a9c11575ef (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/testing/unittest/simple.h
parent2ea6d2c7415473747379b1c65468241b431057ad (diff)
downloadydb-3f5911a056d3dbc4bfd724740244a3a9c11575ef.tar.gz
Restoring authorship annotation for <nsofya@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/testing/unittest/simple.h')
-rw-r--r--library/cpp/testing/unittest/simple.h62
1 files changed, 31 insertions, 31 deletions
diff --git a/library/cpp/testing/unittest/simple.h b/library/cpp/testing/unittest/simple.h
index c7d143be99..2a5300d886 100644
--- a/library/cpp/testing/unittest/simple.h
+++ b/library/cpp/testing/unittest/simple.h
@@ -1,39 +1,39 @@
-#pragma once
-
-#include "registar.h"
-
-namespace NUnitTest {
- struct TSimpleTestExecutor: public TTestBase {
+#pragma once
+
+#include "registar.h"
+
+namespace NUnitTest {
+ struct TSimpleTestExecutor: public TTestBase {
typedef TVector<TBaseTestCase> TTests;
-
- TTests Tests;
-
- virtual void Execute() override final {
- AtStart();
-
- for (typename TTests::iterator i = Tests.begin(), ie = Tests.end(); i != ie; ++i) {
+
+ TTests Tests;
+
+ virtual void Execute() override final {
+ AtStart();
+
+ for (typename TTests::iterator i = Tests.begin(), ie = Tests.end(); i != ie; ++i) {
if (!CheckAccessTest(i->Name_)) {
- continue;
- }
+ continue;
+ }
TTestContext context(this->Processor());
- try {
+ try {
BeforeTest(i->Name_);
- {
- TCleanUp cleaner(this);
+ {
+ TCleanUp cleaner(this);
TTestBase::Run([i, &context] { i->Body_(context); }, Name(), i->Name_, i->ForceFork_);
- }
- } catch (const ::NUnitTest::TAssertException&) {
- } catch (const yexception& e) {
+ }
+ } catch (const ::NUnitTest::TAssertException&) {
+ } catch (const yexception& e) {
CATCH_REACTION_BT(i->Name_, e, &context);
- } catch (const std::exception& e) {
+ } catch (const std::exception& e) {
CATCH_REACTION(i->Name_, e, &context);
- } catch (...) {
- AddError("non-std exception!", &context);
- }
+ } catch (...) {
+ AddError("non-std exception!", &context);
+ }
Finish(i->Name_, &context);
- }
-
- AtEnd();
- }
- };
-}
+ }
+
+ AtEnd();
+ }
+ };
+}