Skip to content

Commit 2d7fe04

Browse files
committed
Add tests for library/cpp/yt/string into listfile (#210)
1 parent b8ec326 commit 2d7fe04

File tree

5 files changed

+51
-0
lines changed

5 files changed

+51
-0
lines changed

library/cpp/yt/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ if (YDB_SDK_TESTS)
44
add_subdirectory(memory/unittests)
55
add_subdirectory(misc/unittests)
66
add_subdirectory(small_containers/unittests)
7+
add_subdirectory(string/unittests)
78
endif()
89

910
_ydb_sdk_add_library(yt-assert)
@@ -147,6 +148,7 @@ target_sources(yt-string
147148
string/guid.cpp
148149
string/string.cpp
149150
string/format.cpp
151+
string/format_string.cpp
150152
)
151153
_ydb_sdk_install_targets(TARGETS yt-string)
152154

library/cpp/yt/containers/unittests/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ add_ydb_test(NAME yt-containers-enum_indexed_array_ut GTEST
33
enum_indexed_array_ut.cpp
44
LINK_LIBRARIES
55
yt-containers
6+
yt-string
67
GTest::gtest_main
78
LABELS
89
unit
@@ -13,6 +14,7 @@ add_ydb_test(NAME yt-containers-sharded_set_ut GTEST
1314
sharded_set_ut.cpp
1415
LINK_LIBRARIES
1516
yt-containers
17+
yt-string
1618
GTest::gtest_main
1719
LABELS
1820
unit

library/cpp/yt/misc/unittests/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ add_ydb_test(NAME yt-misc-guid_ut GTEST
1313
guid_ut.cpp
1414
LINK_LIBRARIES
1515
yt-misc
16+
yt-string
1617
GTest::gtest_main
1718
LABELS
1819
unit
@@ -23,6 +24,7 @@ add_ydb_test(NAME yt-misc-preprocessor_ut GTEST
2324
preprocessor_ut.cpp
2425
LINK_LIBRARIES
2526
yt-misc
27+
yt-string
2628
GTest::gtest_main
2729
LABELS
2830
unit
@@ -33,6 +35,7 @@ add_ydb_test(NAME yt-misc-strong_typedef_ut GTEST
3335
strong_typedef_ut.cpp
3436
LINK_LIBRARIES
3537
yt-misc
38+
yt-string
3639
GTest::gtest_main
3740
LABELS
3841
unit

library/cpp/yt/small_containers/unittests/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ add_ydb_test(NAME yt-small_containers-compact_flat_map_ut GTEST
33
compact_flat_map_ut.cpp
44
LINK_LIBRARIES
55
yt-small_containers
6+
yt-string
67
GTest::gtest_main
78
LABELS
89
unit
@@ -13,6 +14,7 @@ add_ydb_test(NAME yt-small_containers-compact_heap_ut GTEST
1314
compact_heap_ut.cpp
1415
LINK_LIBRARIES
1516
yt-small_containers
17+
yt-string
1618
GTest::gtest_main
1719
LABELS
1820
unit
@@ -23,6 +25,7 @@ add_ydb_test(NAME yt-small_containers-compact_queue_ut GTEST
2325
compact_queue_ut.cpp
2426
LINK_LIBRARIES
2527
yt-small_containers
28+
yt-string
2629
GTest::gtest_main
2730
LABELS
2831
unit
@@ -33,6 +36,7 @@ add_ydb_test(NAME yt-small_containers-compact_set_ut GTEST
3336
compact_set_ut.cpp
3437
LINK_LIBRARIES
3538
yt-small_containers
39+
yt-string
3640
GTest::gtest_main
3741
LABELS
3842
unit
@@ -43,6 +47,7 @@ add_ydb_test(NAME yt-small_containers-compact_vector_ut GTEST
4347
compact_vector_ut.cpp
4448
LINK_LIBRARIES
4549
yt-small_containers
50+
yt-string
4651
GTest::gtest_main
4752
GTest::gmock
4853
LABELS
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
add_ydb_test(NAME yt-string-enum_ut GTEST
2+
SOURCES
3+
enum_ut.cpp
4+
LINK_LIBRARIES
5+
yt-string
6+
GTest::gtest_main
7+
LABELS
8+
unit
9+
)
10+
11+
add_ydb_test(NAME yt-string-format_ut GTEST
12+
SOURCES
13+
format_ut.cpp
14+
LINK_LIBRARIES
15+
yt-string
16+
GTest::gtest_main
17+
LABELS
18+
unit
19+
)
20+
21+
add_ydb_test(NAME yt-string-guid_ut GTEST
22+
SOURCES
23+
guid_ut.cpp
24+
LINK_LIBRARIES
25+
yt-string
26+
GTest::gtest_main
27+
LABELS
28+
unit
29+
)
30+
31+
add_ydb_test(NAME yt-string-string_ut GTEST
32+
SOURCES
33+
string_ut.cpp
34+
LINK_LIBRARIES
35+
yt-string
36+
GTest::gtest_main
37+
LABELS
38+
unit
39+
)

0 commit comments

Comments
 (0)