style: Mark JSON literal strings with R"JSON (#2169)

This commit is contained in:
Ayaz Salikhov
2025-05-30 15:50:39 +01:00
committed by GitHub
parent 7588e9d5bf
commit ecdea015b9
76 changed files with 2811 additions and 2748 deletions

View File

@@ -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