Connection registry

Now we can use leak sanitizer. Yay!
This commit is contained in:
2025-08-21 18:09:36 -04:00
parent 810b5e006d
commit d1b1e6d589
7 changed files with 500 additions and 34 deletions

View File

@@ -128,6 +128,7 @@ set(SOURCES
src/main.cpp
src/config.cpp
src/connection.cpp
src/connection_registry.cpp
src/server.cpp
src/json_commit_request_parser.cpp
src/http_handler.cpp
@@ -157,6 +158,10 @@ add_executable(test_arena_allocator tests/test_arena_allocator.cpp
target_link_libraries(test_arena_allocator doctest::doctest)
target_include_directories(test_arena_allocator PRIVATE src)
add_executable(test_connection_registry tests/test_connection_registry.cpp)
target_link_libraries(test_connection_registry doctest::doctest)
target_include_directories(test_connection_registry PRIVATE src)
add_executable(
test_commit_request
tests/test_commit_request.cpp src/json_commit_request_parser.cpp
@@ -168,8 +173,9 @@ target_link_libraries(test_commit_request doctest::doctest weaseljson test_data
target_include_directories(test_commit_request PRIVATE src tests)
add_executable(
test_http_handler tests/test_http_handler.cpp src/http_handler.cpp
src/arena_allocator.cpp src/connection.cpp)
test_http_handler
tests/test_http_handler.cpp src/http_handler.cpp src/arena_allocator.cpp
src/connection.cpp src/connection_registry.cpp)
target_link_libraries(test_http_handler doctest::doctest llhttp_static
Threads::Threads perfetto)
target_include_directories(test_http_handler PRIVATE src)
@@ -213,6 +219,7 @@ add_executable(load_tester tools/load_tester.cpp)
target_link_libraries(load_tester Threads::Threads llhttp_static perfetto)
add_test(NAME arena_allocator_tests COMMAND test_arena_allocator)
add_test(NAME connection_registry_tests COMMAND test_connection_registry)
add_test(NAME commit_request_tests COMMAND test_commit_request)
add_test(NAME http_handler_tests COMMAND test_http_handler)
add_test(NAME arena_allocator_benchmarks COMMAND bench_arena_allocator)