mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-20 11:45:53 +00:00
style: Mark JSON literal strings with R"JSON (#2169)
This commit is contained in:
@@ -399,11 +399,11 @@ TEST_F(RPCServerInfoHandlerTest, BackendCountersPresentWhenRequestWithParam)
|
||||
}};
|
||||
|
||||
runSpawn([&](auto yield) {
|
||||
auto const req = json::parse(R"(
|
||||
auto const req = json::parse(R"JSON(
|
||||
{
|
||||
"backend_counters": true
|
||||
}
|
||||
)");
|
||||
)JSON");
|
||||
auto const output = handler.process(req, Context{yield, {}, true});
|
||||
|
||||
validateNormalOutput(output);
|
||||
@@ -428,7 +428,7 @@ TEST_F(RPCServerInfoHandlerTest, RippledForwardedValuesPresent)
|
||||
|
||||
EXPECT_CALL(*rawETLServicePtr, isAmendmentBlocked).WillOnce(Return(false));
|
||||
|
||||
auto const rippledObj = json::parse(R"({
|
||||
auto const rippledObj = json::parse(R"JSON({
|
||||
"result": {
|
||||
"info": {
|
||||
"build_version": "1234",
|
||||
@@ -437,7 +437,7 @@ TEST_F(RPCServerInfoHandlerTest, RippledForwardedValuesPresent)
|
||||
"network_id": 2
|
||||
}
|
||||
}
|
||||
})");
|
||||
})JSON");
|
||||
EXPECT_CALL(*rawBalancerPtr, forwardToRippled).WillOnce(Return(rippledObj.as_object()));
|
||||
|
||||
// admin calls
|
||||
@@ -478,11 +478,11 @@ TEST_F(RPCServerInfoHandlerTest, RippledForwardedValuesMissingNoExceptionThrown)
|
||||
|
||||
EXPECT_CALL(*rawETLServicePtr, isAmendmentBlocked).WillOnce(Return(false));
|
||||
|
||||
auto const rippledObj = json::parse(R"({
|
||||
auto const rippledObj = json::parse(R"JSON({
|
||||
"result": {
|
||||
"info": {}
|
||||
}
|
||||
})");
|
||||
})JSON");
|
||||
EXPECT_CALL(*rawBalancerPtr, forwardToRippled).WillOnce(Return(rippledObj.as_object()));
|
||||
|
||||
// admin calls
|
||||
|
||||
Reference in New Issue
Block a user