mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-23 15:20:54 +00:00
chore: Set ColumnLimit to 120 in clang-format (#6288)
This change updates the ColumnLimit from 80 to 120, and applies clang-format to reformat the code.
This commit is contained in:
@@ -69,8 +69,7 @@ public:
|
||||
{
|
||||
testcase("Membership: Non-empty cluster and some present");
|
||||
|
||||
std::vector<PublicKey> cluster(
|
||||
network.begin(), network.begin() + 16);
|
||||
std::vector<PublicKey> cluster(network.begin(), network.begin() + 16);
|
||||
|
||||
while (cluster.size() != 32)
|
||||
cluster.push_back(randomNode());
|
||||
@@ -83,17 +82,14 @@ public:
|
||||
for (auto const& n : network)
|
||||
{
|
||||
auto found = std::find(cluster.begin(), cluster.end(), n);
|
||||
BEAST_EXPECT(
|
||||
static_cast<bool>(c->member(n)) ==
|
||||
(found != cluster.end()));
|
||||
BEAST_EXPECT(static_cast<bool>(c->member(n)) == (found != cluster.end()));
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
testcase("Membership: Non-empty cluster and all present");
|
||||
|
||||
std::vector<PublicKey> cluster(
|
||||
network.begin(), network.begin() + 32);
|
||||
std::vector<PublicKey> cluster(network.begin(), network.begin() + 32);
|
||||
|
||||
auto c = create(cluster);
|
||||
|
||||
@@ -103,9 +99,7 @@ public:
|
||||
for (auto const& n : network)
|
||||
{
|
||||
auto found = std::find(cluster.begin(), cluster.end(), n);
|
||||
BEAST_EXPECT(
|
||||
static_cast<bool>(c->member(n)) ==
|
||||
(found != cluster.end()));
|
||||
BEAST_EXPECT(static_cast<bool>(c->member(n)) == (found != cluster.end()));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -181,8 +175,7 @@ public:
|
||||
while (network.size() != 8)
|
||||
network.push_back(randomNode());
|
||||
|
||||
auto format = [](PublicKey const& publicKey,
|
||||
char const* comment = nullptr) {
|
||||
auto format = [](PublicKey const& publicKey, char const* comment = nullptr) {
|
||||
auto ret = toBase58(TokenType::NodePublic, publicKey);
|
||||
|
||||
if (comment)
|
||||
@@ -205,8 +198,7 @@ public:
|
||||
s1.append(format(network[4], " Leading Whitespace"));
|
||||
s1.append(format(network[5], " Trailing Whitespace "));
|
||||
s1.append(format(network[6], " Leading & Trailing Whitespace "));
|
||||
s1.append(format(
|
||||
network[7], " Leading, Trailing & Internal Whitespace "));
|
||||
s1.append(format(network[7], " Leading, Trailing & Internal Whitespace "));
|
||||
|
||||
BEAST_EXPECT(c->load(s1));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user