Perfetto tracing for /ok. Header parsing not complete

This commit is contained in:
2025-08-20 12:19:20 -04:00
parent 972d87b12e
commit cf692e71ef
6 changed files with 53 additions and 24 deletions

View File

@@ -1,8 +1,12 @@
#include "arena_allocator.hpp"
#include "http_handler.hpp"
#include "perfetto_categories.hpp"
#include <atomic>
#include <doctest/doctest.h>
// Perfetto static storage for tests
PERFETTO_TRACK_EVENT_STATIC_STORAGE();
// Global variable needed by Connection
std::atomic<int> activeConnections{0};
@@ -34,6 +38,7 @@ TEST_CASE("HttpHandler route parsing") {
CHECK(HttpHandler::parseRoute("GET", "/v1/retention") ==
HttpRoute::GET_retention);
CHECK(HttpHandler::parseRoute("GET", "/metrics") == HttpRoute::GET_metrics);
CHECK(HttpHandler::parseRoute("GET", "/ok") == HttpRoute::GET_ok);
}
SUBCASE("POST routes") {