diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:15 +0300 |
commit | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch) | |
tree | da2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /library/cpp/messagebus/rain_check/test | |
parent | 778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff) | |
download | ydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/messagebus/rain_check/test')
3 files changed, 27 insertions, 27 deletions
diff --git a/library/cpp/messagebus/rain_check/test/helper/misc.cpp b/library/cpp/messagebus/rain_check/test/helper/misc.cpp index c0fcb27252..b176878cab 100644 --- a/library/cpp/messagebus/rain_check/test/helper/misc.cpp +++ b/library/cpp/messagebus/rain_check/test/helper/misc.cpp @@ -4,7 +4,7 @@ using namespace NRainCheck; -void TSpawnNopTasksCoroTask::Run() { +void TSpawnNopTasksCoroTask::Run() { Y_VERIFY(Count <= Completion.size()); for (unsigned i = 0; i < Count; ++i) { SpawnSubtask<TNopCoroTask>(Env, &Completion[i], ""); @@ -13,7 +13,7 @@ void TSpawnNopTasksCoroTask::Run() { WaitForSubtasks(); } -TContinueFunc TSpawnNopTasksSimpleTask::Start() { +TContinueFunc TSpawnNopTasksSimpleTask::Start() { Y_VERIFY(Count <= Completion.size()); for (unsigned i = 0; i < Count; ++i) { SpawnSubtask<TNopSimpleTask>(Env, &Completion[i], ""); @@ -22,6 +22,6 @@ TContinueFunc TSpawnNopTasksSimpleTask::Start() { return &TSpawnNopTasksSimpleTask::Join; } -TContinueFunc TSpawnNopTasksSimpleTask::Join() { +TContinueFunc TSpawnNopTasksSimpleTask::Join() { return nullptr; } diff --git a/library/cpp/messagebus/rain_check/test/helper/misc.h b/library/cpp/messagebus/rain_check/test/helper/misc.h index 9150be4d2f..5d8648462d 100644 --- a/library/cpp/messagebus/rain_check/test/helper/misc.h +++ b/library/cpp/messagebus/rain_check/test/helper/misc.h @@ -6,8 +6,8 @@ namespace NRainCheck { struct TNopSimpleTask: public ISimpleTask { - TNopSimpleTask(IEnv*, const void*) { - } + TNopSimpleTask(IEnv*, const void*) { + } TContinueFunc Start() override { return nullptr; @@ -15,11 +15,11 @@ namespace NRainCheck { }; struct TNopCoroTask: public ICoroTask { - TNopCoroTask(IEnv*, const void*) { - } + TNopCoroTask(IEnv*, const void*) { + } - void Run() override { - } + void Run() override { + } }; struct TSpawnNopTasksCoroTask: public ICoroTask { @@ -29,8 +29,8 @@ namespace NRainCheck { TSpawnNopTasksCoroTask(IEnv* env, unsigned count) : Env(env) , Count(count) - { - } + { + } std::array<TSubtaskCompletion, 2> Completion; @@ -44,8 +44,8 @@ namespace NRainCheck { TSpawnNopTasksSimpleTask(IEnv* env, unsigned count) : Env(env) , Count(count) - { - } + { + } std::array<TSubtaskCompletion, 2> Completion; diff --git a/library/cpp/messagebus/rain_check/test/perftest/perftest.cpp b/library/cpp/messagebus/rain_check/test/perftest/perftest.cpp index 22edbd8c6b..c71499e84a 100644 --- a/library/cpp/messagebus/rain_check/test/perftest/perftest.cpp +++ b/library/cpp/messagebus/rain_check/test/perftest/perftest.cpp @@ -16,17 +16,17 @@ struct TRainCheckPerftestEnv: public TSimpleEnvTemplate<TRainCheckPerftestEnv> { TRainCheckPerftestEnv() : TSimpleEnvTemplate<TRainCheckPerftestEnv>(4) , SubtasksPerTask(1000) - { - } + { + } }; struct TCoroOuter: public ICoroTask { TRainCheckPerftestEnv* const Env; - TCoroOuter(TRainCheckPerftestEnv* env) - : Env(env) - { - } + TCoroOuter(TRainCheckPerftestEnv* env) + : Env(env) + { + } void Run() override { for (;;) { @@ -63,10 +63,10 @@ struct TCoroOuter: public ICoroTask { struct TSimpleOuter: public ISimpleTask { TRainCheckPerftestEnv* const Env; - TSimpleOuter(TRainCheckPerftestEnv* env, const void*) - : Env(env) - { - } + TSimpleOuter(TRainCheckPerftestEnv* env, const void*) + : Env(env) + { + } TInstant StartInstant; unsigned Count; @@ -119,10 +119,10 @@ struct TSimpleOuter: public ISimpleTask { struct TReproduceCrashTask: public ISimpleTask { TRainCheckPerftestEnv* const Env; - TReproduceCrashTask(TRainCheckPerftestEnv* env) - : Env(env) - { - } + TReproduceCrashTask(TRainCheckPerftestEnv* env) + : Env(env) + { + } std::array<TSubtaskCompletion, SUBTASKS> Completion; |