diff options
author | dmasloff <dmasloff@yandex-team.com> | 2024-08-30 19:55:50 +0300 |
---|---|---|
committer | dmasloff <dmasloff@yandex-team.com> | 2024-08-30 20:16:45 +0300 |
commit | d1833df14252315c0719e3cc9fccf3c85bce2811 (patch) | |
tree | 97d7c4bde691fcd51fdcada5c8837d8504e4f38d | |
parent | 818158c749f5719316a3471a224a70ff6be9100e (diff) | |
download | ydb-d1833df14252315c0719e3cc9fccf3c85bce2811.tar.gz |
Remove Y_UNIT_TEST from config.clang-format
Remove Y_UNIT_TEST from config.clang-format
853b6da2c4464342d4cfe7756c18ed599004fdd8
-rw-r--r-- | build/config/tests/cpp_style/config.clang-format | 2 | ||||
-rw-r--r-- | util/datetime/base_ut.cpp | 1 | ||||
-rw-r--r-- | util/folder/path_ut.cpp | 2 | ||||
-rw-r--r-- | util/generic/flags_ut.cpp | 6 | ||||
-rw-r--r-- | util/system/atexit_ut.cpp | 2 |
5 files changed, 5 insertions, 8 deletions
diff --git a/build/config/tests/cpp_style/config.clang-format b/build/config/tests/cpp_style/config.clang-format index b31758e14c..9b762202f5 100644 --- a/build/config/tests/cpp_style/config.clang-format +++ b/build/config/tests/cpp_style/config.clang-format @@ -84,7 +84,7 @@ SortIncludes: false IndentPPDirectives: BeforeHash SpaceBeforeInheritanceColon: false -NamespaceMacros: [Y_UNIT_TEST_SUITE, Y_UNIT_TEST] +NamespaceMacros: [Y_UNIT_TEST_SUITE] AttributeMacros: [Y_PRINTF_FORMAT, Y_NO_SANITIZE, Y_FORCE_INLINE, Y_NO_INLINE, Y_WARN_UNUSED_RESULT, Y_HIDDEN, Y_PUBLIC, Y_PURE_FUNCTION] IndentExternBlock: Indent TypenameMacros: [Y_THREAD, Y_STATIC_THREAD, Y_POD_THREAD, Y_POD_STATIC_THREAD] diff --git a/util/datetime/base_ut.cpp b/util/datetime/base_ut.cpp index 3482feafac..3c03626787 100644 --- a/util/datetime/base_ut.cpp +++ b/util/datetime/base_ut.cpp @@ -534,7 +534,6 @@ Y_UNIT_TEST_SUITE(DateTimeTest) { } Y_UNIT_TEST(TestTDurationConstructorFromStdChronoDuration) { - UNIT_ASSERT_VALUES_EQUAL(TDuration::Zero(), TDuration(0ms)); UNIT_ASSERT_VALUES_EQUAL(TDuration::MicroSeconds(42), TDuration(42us)); UNIT_ASSERT_VALUES_EQUAL(TDuration::MicroSeconds(42000000000000L), TDuration(42000000000000us)); diff --git a/util/folder/path_ut.cpp b/util/folder/path_ut.cpp index bb0656ddbc..76dd692ec6 100644 --- a/util/folder/path_ut.cpp +++ b/util/folder/path_ut.cpp @@ -259,7 +259,7 @@ Y_UNIT_TEST_SUITE(TFsPathTests) { // mkdir(2) places umask(2) on mode argument. const int mask = Umask(0); Umask(mask); - UNIT_ASSERT_VALUES_EQUAL(stat.Mode& MODE0777, mode & ~mask); + UNIT_ASSERT_VALUES_EQUAL(stat.Mode & MODE0777, mode & ~mask); } #endif diff --git a/util/generic/flags_ut.cpp b/util/generic/flags_ut.cpp index fa2d4464c9..fc2f73db92 100644 --- a/util/generic/flags_ut.cpp +++ b/util/generic/flags_ut.cpp @@ -114,9 +114,9 @@ Y_UNIT_TEST_SUITE(TFlagsTest) { Y_UNIT_TEST(TestBaseType) { ui16 goodValue = 7; auto goodFlags = ETest1::FromBaseType(goodValue); - UNIT_ASSERT(goodFlags& ETestFlag1::Test1); - UNIT_ASSERT(goodFlags& ETestFlag1::Test2); - UNIT_ASSERT(goodFlags& ETestFlag1::Test4); + UNIT_ASSERT(goodFlags & ETestFlag1::Test1); + UNIT_ASSERT(goodFlags & ETestFlag1::Test2); + UNIT_ASSERT(goodFlags & ETestFlag1::Test4); UNIT_ASSERT_VALUES_EQUAL(goodValue, goodFlags.ToBaseType()); // Passed value is not checked, but preserved as is diff --git a/util/system/atexit_ut.cpp b/util/system/atexit_ut.cpp index f093c2b86b..190f6dd0c3 100644 --- a/util/system/atexit_ut.cpp +++ b/util/system/atexit_ut.cpp @@ -88,7 +88,6 @@ UNIT_TEST_SUITE_REGISTRATION(TAtExitTest); Y_UNIT_TEST_SUITE(TestAtExit) { Y_UNIT_TEST(CreateUponDestruction) { - struct T1 { }; @@ -99,6 +98,5 @@ Y_UNIT_TEST_SUITE(TestAtExit) { }; Singleton<T2>(); - } } |