mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 00:36:48 +00:00
refactor: Enable more clang-tidy readability checks (#6595)
Co-authored-by: Sergey Kuznetsov <kuzzz99@gmail.com>
This commit is contained in:
@@ -33,7 +33,7 @@ class ServerStatus_test : public beast::unit_test::suite, public beast::test::en
|
||||
{
|
||||
};
|
||||
|
||||
auto
|
||||
static auto
|
||||
makeConfig(std::string const& proto, bool admin = true, bool credentials = false)
|
||||
{
|
||||
auto const section_name = boost::starts_with(proto, "h") ? "port_rpc" : "port_ws";
|
||||
@@ -69,7 +69,7 @@ class ServerStatus_test : public beast::unit_test::suite, public beast::test::en
|
||||
return p;
|
||||
}
|
||||
|
||||
auto
|
||||
static auto
|
||||
makeWSUpgrade(std::string const& host, uint16_t port)
|
||||
{
|
||||
using namespace boost::asio;
|
||||
@@ -97,7 +97,7 @@ class ServerStatus_test : public beast::unit_test::suite, public beast::test::en
|
||||
return req;
|
||||
}
|
||||
|
||||
auto
|
||||
static auto
|
||||
makeHTTPRequest(
|
||||
std::string const& host,
|
||||
uint16_t port,
|
||||
@@ -217,7 +217,7 @@ class ServerStatus_test : public beast::unit_test::suite, public beast::test::en
|
||||
return;
|
||||
}
|
||||
|
||||
auto
|
||||
static auto
|
||||
makeAdminRequest(
|
||||
jtx::Env& env,
|
||||
std::string const& proto,
|
||||
|
||||
@@ -91,13 +91,13 @@ public:
|
||||
|
||||
struct TestHandler
|
||||
{
|
||||
bool
|
||||
static bool
|
||||
onAccept(Session& session, boost::asio::ip::tcp::endpoint endpoint)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Handoff
|
||||
static Handoff
|
||||
onHandoff(
|
||||
Session& session,
|
||||
std::unique_ptr<stream_type> const& bundle,
|
||||
@@ -107,7 +107,7 @@ public:
|
||||
return Handoff{};
|
||||
}
|
||||
|
||||
Handoff
|
||||
static Handoff
|
||||
onHandoff(
|
||||
Session& session,
|
||||
http_request_type const& request,
|
||||
@@ -116,7 +116,7 @@ public:
|
||||
return Handoff{};
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
onRequest(Session& session)
|
||||
{
|
||||
session.write(std::string("Hello, world!\n"));
|
||||
@@ -303,13 +303,13 @@ public:
|
||||
testcase("stress test");
|
||||
struct NullHandler
|
||||
{
|
||||
bool
|
||||
static bool
|
||||
onAccept(Session& session, boost::asio::ip::tcp::endpoint endpoint)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Handoff
|
||||
static Handoff
|
||||
onHandoff(
|
||||
Session& session,
|
||||
std::unique_ptr<stream_type> const& bundle,
|
||||
@@ -319,7 +319,7 @@ public:
|
||||
return Handoff{};
|
||||
}
|
||||
|
||||
Handoff
|
||||
static Handoff
|
||||
onHandoff(
|
||||
Session& session,
|
||||
http_request_type const& request,
|
||||
|
||||
Reference in New Issue
Block a user