mirror of
https://github.com/XRPLF/rippled.git
synced 2026-10-03 02:08:05 +00:00
chore: Rename CamelCase namespaces to snake_case (#7933)
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
#include <xrpl/beast/unit_test/suite.h>
|
||||
#include <xrpl/json/json_reader.h> // json::Reader
|
||||
#include <xrpl/json/json_value.h>
|
||||
#include <xrpl/protocol/ErrorCodes.h> // RPC::containsError
|
||||
#include <xrpl/protocol/ErrorCodes.h> // rpc::containsError
|
||||
#include <xrpl/protocol/STParsedJSON.h> // STParsedJSONObject
|
||||
|
||||
#include <stdexcept>
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
namespace xrpl {
|
||||
|
||||
namespace InnerObjectFormatsUnitTestDetail {
|
||||
namespace inner_object_formats_unit_test_detail {
|
||||
|
||||
struct TestJSONTxt
|
||||
{
|
||||
@@ -149,7 +149,7 @@ static TestJSONTxt const kTestArray[] = {
|
||||
|
||||
};
|
||||
|
||||
} // namespace InnerObjectFormatsUnitTestDetail
|
||||
} // namespace inner_object_formats_unit_test_detail
|
||||
|
||||
class InnerObjectFormatsParsedJSON_test : public beast::unit_test::Suite
|
||||
{
|
||||
@@ -157,7 +157,7 @@ public:
|
||||
void
|
||||
run() override
|
||||
{
|
||||
using namespace InnerObjectFormatsUnitTestDetail;
|
||||
using namespace inner_object_formats_unit_test_detail;
|
||||
|
||||
// Instantiate a jtx::Env so debugLog writes are exercised.
|
||||
test::jtx::Env const env(*this);
|
||||
@@ -166,7 +166,7 @@ public:
|
||||
{
|
||||
json::Value req;
|
||||
json::Reader().parse(test.txt, req);
|
||||
if (RPC::containsError(req))
|
||||
if (rpc::containsError(req))
|
||||
{
|
||||
Throw<std::runtime_error>(
|
||||
"Internal InnerObjectFormatsParsedJSON error. Bad JSON.");
|
||||
|
||||
Reference in New Issue
Block a user