mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-31 02:50:24 +00:00
chore: Enable clang-tidy modernize checks (#6975)
Co-authored-by: Bart <11445373+bthomee@users.noreply.github.com> Co-authored-by: Bart <bthomee@users.noreply.github.com>
This commit is contained in:
@@ -24,7 +24,7 @@ struct TestJSONTxt
|
||||
static TestJSONTxt const testArray[] = {
|
||||
|
||||
// Valid SignerEntry
|
||||
{R"({
|
||||
{.txt = R"({
|
||||
"Account" : "rDg53Haik2475DJx8bjMDSDPj4VX7htaMd",
|
||||
"SignerEntries" :
|
||||
[
|
||||
@@ -46,10 +46,10 @@ static TestJSONTxt const testArray[] = {
|
||||
"SignerQuorum" : 7,
|
||||
"TransactionType" : "SignerListSet"
|
||||
})",
|
||||
false},
|
||||
.expectFail = false},
|
||||
|
||||
// SignerEntry missing Account
|
||||
{R"({
|
||||
{.txt = R"({
|
||||
"Account" : "rDg53Haik2475DJx8bjMDSDPj4VX7htaMd",
|
||||
"SignerEntries" :
|
||||
[
|
||||
@@ -70,10 +70,10 @@ static TestJSONTxt const testArray[] = {
|
||||
"SignerQuorum" : 7,
|
||||
"TransactionType" : "SignerListSet"
|
||||
})",
|
||||
true},
|
||||
.expectFail = true},
|
||||
|
||||
// SignerEntry missing SignerWeight
|
||||
{R"({
|
||||
{.txt = R"({
|
||||
"Account" : "rDg53Haik2475DJx8bjMDSDPj4VX7htaMd",
|
||||
"SignerEntries" :
|
||||
[
|
||||
@@ -94,10 +94,10 @@ static TestJSONTxt const testArray[] = {
|
||||
"SignerQuorum" : 7,
|
||||
"TransactionType" : "SignerListSet"
|
||||
})",
|
||||
true},
|
||||
.expectFail = true},
|
||||
|
||||
// SignerEntry with unexpected Amount
|
||||
{R"({
|
||||
{.txt = R"({
|
||||
"Account" : "rDg53Haik2475DJx8bjMDSDPj4VX7htaMd",
|
||||
"SignerEntries" :
|
||||
[
|
||||
@@ -120,10 +120,10 @@ static TestJSONTxt const testArray[] = {
|
||||
"SignerQuorum" : 7,
|
||||
"TransactionType" : "SignerListSet"
|
||||
})",
|
||||
true},
|
||||
.expectFail = true},
|
||||
|
||||
// SignerEntry with no Account and unexpected Amount
|
||||
{R"({
|
||||
{.txt = R"({
|
||||
"Account" : "rDg53Haik2475DJx8bjMDSDPj4VX7htaMd",
|
||||
"SignerEntries" :
|
||||
[
|
||||
@@ -145,7 +145,7 @@ static TestJSONTxt const testArray[] = {
|
||||
"SignerQuorum" : 7,
|
||||
"TransactionType" : "SignerListSet"
|
||||
})",
|
||||
true},
|
||||
.expectFail = true},
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user