diff options
author | serg-belyakov <serg-belyakov@yandex-team.com> | 2023-01-19 20:46:49 +0300 |
---|---|---|
committer | serg-belyakov <serg-belyakov@yandex-team.com> | 2023-01-19 20:46:49 +0300 |
commit | 212a007c7d351a104cab7371002295158e01115b (patch) | |
tree | 671e3a3244aa6c84f31a6f02f24fd6bc06ea7f79 | |
parent | f4c9bf14e27104c5ad6e8790bcd32878e329920a (diff) | |
download | ydb-212a007c7d351a104cab7371002295158e01115b.tar.gz |
Remove test classes from .h,
Remove test classes from .h,
-rw-r--r-- | ydb/core/driver_lib/run/version.cpp | 3 | ||||
-rw-r--r-- | ydb/core/driver_lib/run/version.h | 9 | ||||
-rw-r--r-- | ydb/core/driver_lib/run/version_ut.cpp | 9 |
3 files changed, 9 insertions, 12 deletions
diff --git a/ydb/core/driver_lib/run/version.cpp b/ydb/core/driver_lib/run/version.cpp index afb4688060..e37ddb87d2 100644 --- a/ydb/core/driver_lib/run/version.cpp +++ b/ydb/core/driver_lib/run/version.cpp @@ -258,9 +258,6 @@ void TCompatibilityInfo::Reset(NKikimrConfig::TCurrentCompatibilityInfo* newCurr CompatibilityInfo = newCurrent; } -void TCompatibilityInfoTest::Reset(NKikimrConfig::TCurrentCompatibilityInfo* newCurrent) { - TCompatibilityInfo::Reset(newCurrent); -} // obsolete version control TMaybe<NActors::TInterconnectProxyCommon::TVersionInfo> VERSION = NActors::TInterconnectProxyCommon::TVersionInfo{ // version of this binary diff --git a/ydb/core/driver_lib/run/version.h b/ydb/core/driver_lib/run/version.h index a5183a180d..3c8d82f7fa 100644 --- a/ydb/core/driver_lib/run/version.h +++ b/ydb/core/driver_lib/run/version.h @@ -3,8 +3,6 @@ #include <library/cpp/actors/interconnect/interconnect_common.h> #include <ydb/core/protos/config.pb.h> -class TCompatibilityInfoTest; - class TCompatibilityInfo { friend class TCompatibilityInfoTest; @@ -34,13 +32,6 @@ private: static void Reset(NKikimrConfig::TCurrentCompatibilityInfo* newCurrent); }; -class TCompatibilityInfoTest { -public: - TCompatibilityInfoTest() = delete; - - static void Reset(NKikimrConfig::TCurrentCompatibilityInfo* newCurrent); -}; - // obsolete version control // TODO: remove in the next major release extern TMaybe<NActors::TInterconnectProxyCommon::TVersionInfo> VERSION; diff --git a/ydb/core/driver_lib/run/version_ut.cpp b/ydb/core/driver_lib/run/version_ut.cpp index 89d4aadfb5..df1e6b1818 100644 --- a/ydb/core/driver_lib/run/version_ut.cpp +++ b/ydb/core/driver_lib/run/version_ut.cpp @@ -1,6 +1,15 @@ #include <library/cpp/testing/unittest/registar.h> #include "version.h" +class TCompatibilityInfoTest { +public: + TCompatibilityInfoTest() = delete; + + static void Reset(NKikimrConfig::TCurrentCompatibilityInfo* newCurrent) { + TCompatibilityInfo::Reset(newCurrent); + } +}; + Y_UNIT_TEST_SUITE(VersionParser) { Y_UNIT_TEST(Basic) { UNIT_ASSERT_VALUES_EQUAL(GetBranchName("svn+ssh://arcadia.yandex.ru/arc/trunk/arcadia"), "trunk"); |