mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-05 17:56:49 +00:00
chore: Enable clang-tidy misc checks (#6655)
This commit is contained in:
@@ -191,14 +191,14 @@ public:
|
||||
}
|
||||
{
|
||||
// Request an invalid ledger.
|
||||
Json::Value args{depositAuthArgs(alice, becky, "-1")};
|
||||
Json::Value const args{depositAuthArgs(alice, becky, "-1")};
|
||||
Json::Value const result{env.rpc("json", "deposit_authorized", args.toStyledString())};
|
||||
verifyErr(
|
||||
result, "invalidParams", "Invalid field 'ledger_index', not string or number.");
|
||||
}
|
||||
{
|
||||
// Request a ledger that doesn't exist yet as a string.
|
||||
Json::Value args{depositAuthArgs(alice, becky, "17")};
|
||||
Json::Value const args{depositAuthArgs(alice, becky, "17")};
|
||||
Json::Value const result{env.rpc("json", "deposit_authorized", args.toStyledString())};
|
||||
verifyErr(result, "lgrNotFound", "ledgerNotFound");
|
||||
}
|
||||
@@ -211,7 +211,7 @@ public:
|
||||
}
|
||||
{
|
||||
// alice is not yet funded.
|
||||
Json::Value args{depositAuthArgs(alice, becky)};
|
||||
Json::Value const args{depositAuthArgs(alice, becky)};
|
||||
Json::Value const result{env.rpc("json", "deposit_authorized", args.toStyledString())};
|
||||
verifyErr(result, "srcActNotFound", "Source account not found.");
|
||||
}
|
||||
@@ -219,7 +219,7 @@ public:
|
||||
env.close();
|
||||
{
|
||||
// becky is not yet funded.
|
||||
Json::Value args{depositAuthArgs(alice, becky)};
|
||||
Json::Value const args{depositAuthArgs(alice, becky)};
|
||||
Json::Value const result{env.rpc("json", "deposit_authorized", args.toStyledString())};
|
||||
verifyErr(result, "dstActNotFound", "Destination account not found.");
|
||||
}
|
||||
@@ -227,7 +227,7 @@ public:
|
||||
env.close();
|
||||
{
|
||||
// Once becky is funded try it again and see it succeed.
|
||||
Json::Value args{depositAuthArgs(alice, becky)};
|
||||
Json::Value const args{depositAuthArgs(alice, becky)};
|
||||
Json::Value const result{env.rpc("json", "deposit_authorized", args.toStyledString())};
|
||||
validateDepositAuthResult(result, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user