msgpack::map_view can be used to iterate, pair-wise, over a range of msgpack::token. It will immediately return if the first token is not a map, and will skip over nested map/arrays. Note for the future: It will be handy to be able to get the subspan corresponding to the nested map/array. Will think about how to solve that later. Begin incorporating map_view into the server. Add formatters for std::byte, dynamic theme for bool, and spans thereof. Maybe switch to range?
65 lines
933 B
Python
65 lines
933 B
Python
|
|
cc_library(
|
|
name = "test_deps",
|
|
srcs = [
|
|
"test_main.cpp",
|
|
"rng.h",
|
|
],
|
|
deps = [
|
|
"//include/parselink:msgpack",
|
|
"@expected",
|
|
"@fmt",
|
|
"@magic_enum",
|
|
"@ut",
|
|
],
|
|
)
|
|
|
|
cc_test(
|
|
name = "reader",
|
|
srcs = [
|
|
"test_reader_relaxed.cpp",
|
|
"test_reader_strict.cpp",
|
|
],
|
|
deps = ["test_deps"],
|
|
)
|
|
|
|
cc_test(
|
|
name = "writer",
|
|
srcs = [
|
|
"test_writer.cpp",
|
|
],
|
|
deps = ["test_deps"],
|
|
)
|
|
|
|
cc_test(
|
|
name = "token",
|
|
srcs = [
|
|
"test_token.cpp",
|
|
],
|
|
deps = ["test_deps"],
|
|
)
|
|
|
|
cc_test(
|
|
name = "token_reader",
|
|
srcs = [
|
|
"test_token_reader.cpp",
|
|
],
|
|
deps = ["test_deps"],
|
|
)
|
|
|
|
cc_test(
|
|
name = "token_views",
|
|
srcs = [
|
|
"test_token_views.cpp",
|
|
],
|
|
deps = ["test_deps"],
|
|
)
|
|
|
|
cc_binary(
|
|
name = "speed",
|
|
srcs = [
|
|
"test_speed.cpp",
|
|
],
|
|
deps = ["test_deps"],
|
|
)
|