aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus/coreconn_ut.cpp
diff options
context:
space:
mode:
authornga <nga@yandex-team.ru>2022-02-10 16:48:09 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:09 +0300
commitc2a1af049e9deca890e9923abe64fe6c59060348 (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /library/cpp/messagebus/coreconn_ut.cpp
parent1f553f46fb4f3c5eec631352cdd900a0709016af (diff)
downloadydb-c2a1af049e9deca890e9923abe64fe6c59060348.tar.gz
Restoring authorship annotation for <nga@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/messagebus/coreconn_ut.cpp')
-rw-r--r--library/cpp/messagebus/coreconn_ut.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/library/cpp/messagebus/coreconn_ut.cpp b/library/cpp/messagebus/coreconn_ut.cpp
index 710a82b75a..beb6850f26 100644
--- a/library/cpp/messagebus/coreconn_ut.cpp
+++ b/library/cpp/messagebus/coreconn_ut.cpp
@@ -1,25 +1,25 @@
#include <library/cpp/testing/unittest/registar.h>
-#include "coreconn.h"
-
-#include <util/generic/yexception.h>
-
+#include "coreconn.h"
+
+#include <util/generic/yexception.h>
+
Y_UNIT_TEST_SUITE(TMakeIpVersionTest) {
- using namespace NBus;
-
+ using namespace NBus;
+
Y_UNIT_TEST(IpV4Allowed) {
- UNIT_ASSERT_EQUAL(MakeIpVersion(true, false), EIP_VERSION_4);
- }
-
+ UNIT_ASSERT_EQUAL(MakeIpVersion(true, false), EIP_VERSION_4);
+ }
+
Y_UNIT_TEST(IpV6Allowed) {
- UNIT_ASSERT_EQUAL(MakeIpVersion(false, true), EIP_VERSION_6);
- }
-
+ UNIT_ASSERT_EQUAL(MakeIpVersion(false, true), EIP_VERSION_6);
+ }
+
Y_UNIT_TEST(AllAllowed) {
- UNIT_ASSERT_EQUAL(MakeIpVersion(true, true), EIP_VERSION_ANY);
- }
-
+ UNIT_ASSERT_EQUAL(MakeIpVersion(true, true), EIP_VERSION_ANY);
+ }
+
Y_UNIT_TEST(NothingAllowed) {
- UNIT_ASSERT_EXCEPTION(MakeIpVersion(false, false), yexception);
- }
-}
+ UNIT_ASSERT_EXCEPTION(MakeIpVersion(false, false), yexception);
+ }
+}