mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-20 03:35:55 +00:00
style: Fix JSON style in C++ code (#2262)
This commit is contained in:
@@ -183,8 +183,8 @@ TEST_F(RPCAccountNFTsHandlerTest, LedgerNotFoundViaHash)
|
||||
|
||||
static auto const kINPUT = json::parse(fmt::format(
|
||||
R"JSON({{
|
||||
"account":"{}",
|
||||
"ledger_hash":"{}"
|
||||
"account": "{}",
|
||||
"ledger_hash": "{}"
|
||||
}})JSON",
|
||||
kACCOUNT,
|
||||
kLEDGER_HASH
|
||||
@@ -209,8 +209,8 @@ TEST_F(RPCAccountNFTsHandlerTest, LedgerNotFoundViaStringIndex)
|
||||
|
||||
static auto const kINPUT = json::parse(fmt::format(
|
||||
R"JSON({{
|
||||
"account":"{}",
|
||||
"ledger_index":"{}"
|
||||
"account": "{}",
|
||||
"ledger_index": "{}"
|
||||
}})JSON",
|
||||
kACCOUNT,
|
||||
kSEQ
|
||||
@@ -235,8 +235,8 @@ TEST_F(RPCAccountNFTsHandlerTest, LedgerNotFoundViaIntIndex)
|
||||
|
||||
static auto const kINPUT = json::parse(fmt::format(
|
||||
R"JSON({{
|
||||
"account":"{}",
|
||||
"ledger_index":{}
|
||||
"account": "{}",
|
||||
"ledger_index": {}
|
||||
}})JSON",
|
||||
kACCOUNT,
|
||||
kSEQ
|
||||
@@ -262,7 +262,7 @@ TEST_F(RPCAccountNFTsHandlerTest, AccountNotFound)
|
||||
|
||||
static auto const kINPUT = json::parse(fmt::format(
|
||||
R"JSON({{
|
||||
"account":"{}"
|
||||
"account": "{}"
|
||||
}})JSON",
|
||||
kACCOUNT
|
||||
));
|
||||
@@ -280,22 +280,22 @@ TEST_F(RPCAccountNFTsHandlerTest, NormalPath)
|
||||
{
|
||||
static auto const kEXPECTED_OUTPUT = fmt::format(
|
||||
R"JSON({{
|
||||
"ledger_hash":"{}",
|
||||
"ledger_index":30,
|
||||
"validated":true,
|
||||
"account":"{}",
|
||||
"account_nfts":[
|
||||
"ledger_hash": "{}",
|
||||
"ledger_index": 30,
|
||||
"validated": true,
|
||||
"account": "{}",
|
||||
"account_nfts": [
|
||||
{{
|
||||
"NFTokenID":"{}",
|
||||
"URI":"7777772E6F6B2E636F6D",
|
||||
"Flags":{},
|
||||
"Issuer":"{}",
|
||||
"NFTokenTaxon":{},
|
||||
"nft_serial":{},
|
||||
"TransferFee":10000
|
||||
"NFTokenID": "{}",
|
||||
"URI": "7777772E6F6B2E636F6D",
|
||||
"Flags": {},
|
||||
"Issuer": "{}",
|
||||
"NFTokenTaxon": {},
|
||||
"nft_serial": {},
|
||||
"TransferFee": 10000
|
||||
}}
|
||||
],
|
||||
"limit":100
|
||||
"limit": 100
|
||||
}})JSON",
|
||||
kLEDGER_HASH,
|
||||
kACCOUNT,
|
||||
@@ -325,7 +325,7 @@ TEST_F(RPCAccountNFTsHandlerTest, NormalPath)
|
||||
|
||||
static auto const kINPUT = json::parse(fmt::format(
|
||||
R"JSON({{
|
||||
"account":"{}"
|
||||
"account": "{}"
|
||||
}})JSON",
|
||||
kACCOUNT
|
||||
));
|
||||
@@ -359,8 +359,8 @@ TEST_F(RPCAccountNFTsHandlerTest, Limit)
|
||||
|
||||
static auto const kINPUT = json::parse(fmt::format(
|
||||
R"JSON({{
|
||||
"account":"{}",
|
||||
"limit":{}
|
||||
"account": "{}",
|
||||
"limit": {}
|
||||
}})JSON",
|
||||
kACCOUNT,
|
||||
kLIMIT
|
||||
@@ -394,8 +394,8 @@ TEST_F(RPCAccountNFTsHandlerTest, Marker)
|
||||
|
||||
static auto const kINPUT = json::parse(fmt::format(
|
||||
R"JSON({{
|
||||
"account":"{}",
|
||||
"marker":"{}"
|
||||
"account": "{}",
|
||||
"marker": "{}"
|
||||
}})JSON",
|
||||
kACCOUNT,
|
||||
kPAGE
|
||||
@@ -421,8 +421,8 @@ TEST_F(RPCAccountNFTsHandlerTest, InvalidMarker)
|
||||
|
||||
static auto const kINPUT = json::parse(fmt::format(
|
||||
R"JSON({{
|
||||
"account":"{}",
|
||||
"marker":"{}"
|
||||
"account": "{}",
|
||||
"marker": "{}"
|
||||
}})JSON",
|
||||
kACCOUNT,
|
||||
kINVALID_PAGE
|
||||
@@ -450,7 +450,7 @@ TEST_F(RPCAccountNFTsHandlerTest, AccountWithNoNFT)
|
||||
|
||||
static auto const kINPUT = json::parse(fmt::format(
|
||||
R"JSON({{
|
||||
"account":"{}"
|
||||
"account": "{}"
|
||||
}})JSON",
|
||||
kACCOUNT
|
||||
));
|
||||
@@ -482,8 +482,8 @@ TEST_F(RPCAccountNFTsHandlerTest, invalidPage)
|
||||
|
||||
static auto const kINPUT = json::parse(fmt::format(
|
||||
R"JSON({{
|
||||
"account":"{}",
|
||||
"marker":"{}"
|
||||
"account": "{}",
|
||||
"marker": "{}"
|
||||
}})JSON",
|
||||
kACCOUNT,
|
||||
kPAGE
|
||||
@@ -502,22 +502,22 @@ TEST_F(RPCAccountNFTsHandlerTest, LimitLessThanMin)
|
||||
{
|
||||
static auto const kEXPECTED_OUTPUT = fmt::format(
|
||||
R"JSON({{
|
||||
"ledger_hash":"{}",
|
||||
"ledger_index":30,
|
||||
"validated":true,
|
||||
"account":"{}",
|
||||
"account_nfts":[
|
||||
"ledger_hash": "{}",
|
||||
"ledger_index": 30,
|
||||
"validated": true,
|
||||
"account": "{}",
|
||||
"account_nfts": [
|
||||
{{
|
||||
"NFTokenID":"{}",
|
||||
"URI":"7777772E6F6B2E636F6D",
|
||||
"Flags":{},
|
||||
"Issuer":"{}",
|
||||
"NFTokenTaxon":{},
|
||||
"nft_serial":{},
|
||||
"TransferFee":10000
|
||||
"NFTokenID": "{}",
|
||||
"URI": "7777772E6F6B2E636F6D",
|
||||
"Flags": {},
|
||||
"Issuer": "{}",
|
||||
"NFTokenTaxon": {},
|
||||
"nft_serial": {},
|
||||
"TransferFee": 10000
|
||||
}}
|
||||
],
|
||||
"limit":{}
|
||||
"limit": {}
|
||||
}})JSON",
|
||||
kLEDGER_HASH,
|
||||
kACCOUNT,
|
||||
@@ -548,8 +548,8 @@ TEST_F(RPCAccountNFTsHandlerTest, LimitLessThanMin)
|
||||
|
||||
static auto const kINPUT = json::parse(fmt::format(
|
||||
R"JSON({{
|
||||
"account":"{}",
|
||||
"limit":{}
|
||||
"account": "{}",
|
||||
"limit": {}
|
||||
}})JSON",
|
||||
kACCOUNT,
|
||||
AccountNFTsHandler::kLIMIT_MIN - 1
|
||||
@@ -566,22 +566,22 @@ TEST_F(RPCAccountNFTsHandlerTest, LimitMoreThanMax)
|
||||
{
|
||||
static auto const kEXPECTED_OUTPUT = fmt::format(
|
||||
R"JSON({{
|
||||
"ledger_hash":"{}",
|
||||
"ledger_index":30,
|
||||
"validated":true,
|
||||
"account":"{}",
|
||||
"account_nfts":[
|
||||
"ledger_hash": "{}",
|
||||
"ledger_index": 30,
|
||||
"validated": true,
|
||||
"account": "{}",
|
||||
"account_nfts": [
|
||||
{{
|
||||
"NFTokenID":"{}",
|
||||
"URI":"7777772E6F6B2E636F6D",
|
||||
"Flags":{},
|
||||
"Issuer":"{}",
|
||||
"NFTokenTaxon":{},
|
||||
"nft_serial":{},
|
||||
"TransferFee":10000
|
||||
"NFTokenID": "{}",
|
||||
"URI": "7777772E6F6B2E636F6D",
|
||||
"Flags": {},
|
||||
"Issuer": "{}",
|
||||
"NFTokenTaxon": {},
|
||||
"nft_serial": {},
|
||||
"TransferFee": 10000
|
||||
}}
|
||||
],
|
||||
"limit":{}
|
||||
"limit": {}
|
||||
}})JSON",
|
||||
kLEDGER_HASH,
|
||||
kACCOUNT,
|
||||
@@ -612,8 +612,8 @@ TEST_F(RPCAccountNFTsHandlerTest, LimitMoreThanMax)
|
||||
|
||||
static auto const kINPUT = json::parse(fmt::format(
|
||||
R"JSON({{
|
||||
"account":"{}",
|
||||
"limit":{}
|
||||
"account": "{}",
|
||||
"limit": {}
|
||||
}})JSON",
|
||||
kACCOUNT,
|
||||
AccountNFTsHandler::kLIMIT_MAX + 1
|
||||
|
||||
Reference in New Issue
Block a user