Skip to content

Commit

Permalink
style: clang-tidy auto fixes (#1778)
Browse files Browse the repository at this point in the history
Fixes #1777.
  • Loading branch information
github-actions[bot] authored Dec 11, 2024
1 parent 7bef13f commit c41399e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
10 changes: 0 additions & 10 deletions src/app/ClioApplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include "etl/NetworkValidatedLedgers.hpp"
#include "feed/SubscriptionManager.hpp"
#include "rpc/Counters.hpp"
#include "rpc/Errors.hpp"
#include "rpc/RPCEngine.hpp"
#include "rpc/WorkQueue.hpp"
#include "rpc/common/impl/HandlerProvider.hpp"
Expand All @@ -38,25 +37,16 @@
#include "web/AdminVerificationStrategy.hpp"
#include "web/RPCServerHandler.hpp"
#include "web/Server.hpp"
#include "web/SubscriptionContextInterface.hpp"
#include "web/dosguard/DOSGuard.hpp"
#include "web/dosguard/IntervalSweepHandler.hpp"
#include "web/dosguard/WhitelistHandler.hpp"
#include "web/ng/Connection.hpp"
#include "web/ng/RPCServerHandler.hpp"
#include "web/ng/Request.hpp"
#include "web/ng/Response.hpp"
#include "web/ng/Server.hpp"

#include <boost/asio/io_context.hpp>
#include <boost/asio/spawn.hpp>
#include <boost/beast/http/status.hpp>
#include <boost/json/array.hpp>
#include <boost/json/parse.hpp>

#include <cstdint>
#include <cstdlib>
#include <exception>
#include <memory>
#include <optional>
#include <thread>
Expand Down
1 change: 0 additions & 1 deletion tests/unit/app/WebHandlersTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
#include <gtest/gtest.h>

#include <memory>
#include <optional>
#include <stdexcept>
#include <string>
#include <string_view>
Expand Down
8 changes: 4 additions & 4 deletions tests/unit/web/ng/ResponseTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ TEST_F(ResponseTest, asConstBufferJson)

TEST_F(ResponseTest, createFromStringAndConnection)
{
util::TagDecoratorFactory tagDecoratorFactory{util::Config{}};
StrictMockConnection connection{"some ip", boost::beast::flat_buffer{}, tagDecoratorFactory};
util::TagDecoratorFactory const tagDecoratorFactory{util::Config{}};
StrictMockConnection const connection{"some ip", boost::beast::flat_buffer{}, tagDecoratorFactory};
std::string const responseMessage = "response message";

EXPECT_CALL(connection, wasUpgraded()).WillOnce(testing::Return(false));
Expand All @@ -150,8 +150,8 @@ TEST_F(ResponseTest, createFromStringAndConnection)

TEST_F(ResponseTest, createFromJsonAndConnection)
{
util::TagDecoratorFactory tagDecoratorFactory{util::Config{}};
StrictMockConnection connection{"some ip", boost::beast::flat_buffer{}, tagDecoratorFactory};
util::TagDecoratorFactory const tagDecoratorFactory{util::Config{}};
StrictMockConnection const connection{"some ip", boost::beast::flat_buffer{}, tagDecoratorFactory};
boost::json::object const responseMessage{{"key", "value"}};

EXPECT_CALL(connection, wasUpgraded()).WillOnce(testing::Return(false));
Expand Down

0 comments on commit c41399e

Please sign in to comment.