refactor(confighttp): HTML page handlers into generic getPage function (#4645)

This commit is contained in:
David Lane
2026-03-08 18:36:22 -04:00
committed by GitHub
parent 3fbbe88b79
commit f04f6a2bde
13 changed files with 1250 additions and 275 deletions

View File

@@ -3,11 +3,25 @@
* @brief Common declarations.
*/
#pragma once
// Suppress false positive warnings in Boost.Asio on some GCC versions (particularly Arch Linux)
// These are known false positives in Boost.Asio's basic_resolver_results.hpp
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Warray-bounds"
#pragma GCC diagnostic ignored "-Wstringop-overflow"
#endif
#include <gtest/gtest.h>
#include <src/globals.h>
#include <src/logging.h>
#include <src/platform/common.h>
// Restore warnings after including problematic headers
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic pop
#endif
// XFail/XPass pattern implementation (similar to pytest)
namespace test_utils {
/**