chore: No ALL_CAPS (#1760)

Fixes #1680
This commit is contained in:
Alex Kremer
2025-01-02 11:39:31 +00:00
committed by GitHub
parent efe5d08205
commit 820b32c6d7
361 changed files with 10061 additions and 9724 deletions

View File

@@ -42,6 +42,7 @@ using namespace web;
using namespace util::config;
struct ErrorHandlingTests : NoLoggerFixture {
protected:
util::TagDecoratorFactory tagFactory_{ClioConfigDefinition{
{"log_tag_style", ConfigValue{ConfigType::String}.defaultValue("uint")},
}};
@@ -120,7 +121,7 @@ INSTANTIATE_TEST_CASE_P(
{"request", {{"id", 1}, {"api_version", 2}}}}}}
}}
),
tests::util::NameGenerator
tests::util::kNAME_GENERATOR
);
struct ErrorHandlingSendErrorTestBundle {
@@ -157,35 +158,35 @@ INSTANTIATE_TEST_CASE_P(
ErrorHandlingSendErrorTestBundle{
"NotUpgradedConnection_InvalidApiVersion",
false,
rpc::Status{rpc::ClioError::rpcINVALID_API_VERSION},
rpc::Status{rpc::ClioError::RpcInvalidApiVersion},
"invalid_API_version",
boost::beast::http::status::bad_request
},
ErrorHandlingSendErrorTestBundle{
"NotUpgradedConnection_CommandIsMissing",
false,
rpc::Status{rpc::ClioError::rpcCOMMAND_IS_MISSING},
rpc::Status{rpc::ClioError::RpcCommandIsMissing},
"Null method",
boost::beast::http::status::bad_request
},
ErrorHandlingSendErrorTestBundle{
"NotUpgradedConnection_CommandIsEmpty",
false,
rpc::Status{rpc::ClioError::rpcCOMMAND_IS_EMPTY},
rpc::Status{rpc::ClioError::RpcCommandIsEmpty},
"method is empty",
boost::beast::http::status::bad_request
},
ErrorHandlingSendErrorTestBundle{
"NotUpgradedConnection_CommandNotString",
false,
rpc::Status{rpc::ClioError::rpcCOMMAND_NOT_STRING},
rpc::Status{rpc::ClioError::RpcCommandNotString},
"method is not string",
boost::beast::http::status::bad_request
},
ErrorHandlingSendErrorTestBundle{
"NotUpgradedConnection_ParamsUnparseable",
false,
rpc::Status{rpc::ClioError::rpcPARAMS_UNPARSEABLE},
rpc::Status{rpc::ClioError::RpcParamsUnparseable},
"params unparseable",
boost::beast::http::status::bad_request
},
@@ -197,7 +198,7 @@ INSTANTIATE_TEST_CASE_P(
boost::beast::http::status::bad_request
},
}),
tests::util::NameGenerator
tests::util::kNAME_GENERATOR
);
TEST_F(ErrorHandlingTests, sendInternalError)