chore: Add clang-tidy 19 checks (#1774)

Fix #1664
This commit is contained in:
Alex Kremer
2024-12-09 16:27:53 +00:00
committed by GitHub
parent a7074dbf0f
commit 475e309f25
87 changed files with 3135 additions and 2711 deletions

View File

@@ -73,13 +73,22 @@ generateTestValuesForParametersTest()
{
return std::vector<BookChangesParamTestCaseBundle>{
BookChangesParamTestCaseBundle{
"LedgerHashInvalid", R"({"ledger_hash":"1"})", "invalidParams", "ledger_hashMalformed"
.testName = "LedgerHashInvalid",
.testJson = R"({"ledger_hash":"1"})",
.expectedError = "invalidParams",
.expectedErrorMessage = "ledger_hashMalformed"
},
BookChangesParamTestCaseBundle{
"LedgerHashNotString", R"({"ledger_hash":1})", "invalidParams", "ledger_hashNotString"
.testName = "LedgerHashNotString",
.testJson = R"({"ledger_hash":1})",
.expectedError = "invalidParams",
.expectedErrorMessage = "ledger_hashNotString"
},
BookChangesParamTestCaseBundle{
"LedgerIndexInvalid", R"({"ledger_index":"a"})", "invalidParams", "ledgerIndexMalformed"
.testName = "LedgerIndexInvalid",
.testJson = R"({"ledger_index":"a"})",
.expectedError = "invalidParams",
.expectedErrorMessage = "ledgerIndexMalformed"
},
};
}