refactor: Enable clang-tidy readability-identifier-naming check (#6571)

This commit is contained in:
Alex Kremer
2026-05-03 11:31:53 +01:00
committed by GitHub
parent 182d844996
commit 8995564ed6
1498 changed files with 58858 additions and 58914 deletions

View File

@@ -11,7 +11,7 @@ namespace xrpl::test {
//------------------------------------------------------------------------------
class JobQueue_test : public beast::unit_test::suite
class JobQueue_test : public beast::unit_test::Suite
{
void
testAddJob()
@@ -23,7 +23,7 @@ class JobQueue_test : public beast::unit_test::suite
// addJob() should run the Job (and return true).
std::atomic<bool> jobRan{false};
BEAST_EXPECT(
jQueue.addJob(jtCLIENT, "JobAddTest1", [&jobRan]() { jobRan = true; }) == true);
jQueue.addJob(JtClient, "JobAddTest1", [&jobRan]() { jobRan = true; }) == true);
// Wait for the Job to run.
while (!jobRan)
@@ -40,7 +40,7 @@ class JobQueue_test : public beast::unit_test::suite
// unprotected variable on the stack should be completely safe.
// Not recommended for the faint of heart...
bool unprotected = false;
BEAST_EXPECT(jQueue.addJob(jtCLIENT, "JobAddTest2", [&unprotected]() {
BEAST_EXPECT(jQueue.addJob(JtClient, "JobAddTest2", [&unprotected]() {
unprotected = false;
}) == false);
}
@@ -56,7 +56,7 @@ class JobQueue_test : public beast::unit_test::suite
// Test repeated post()s until the Coro completes.
std::atomic<int> yieldCount{0};
auto const coro = jQueue.postCoro(
jtCLIENT,
JtClient,
"PostCoroTest1",
[&yieldCount](std::shared_ptr<JobQueue::Coro> const& coroCopy) {
while (++yieldCount < 4)
@@ -85,7 +85,7 @@ class JobQueue_test : public beast::unit_test::suite
// Test repeated resume()s until the Coro completes.
int yieldCount{0};
auto const coro = jQueue.postCoro(
jtCLIENT,
JtClient,
"PostCoroTest2",
[&yieldCount](std::shared_ptr<JobQueue::Coro> const& coroCopy) {
while (++yieldCount < 4)
@@ -123,7 +123,7 @@ class JobQueue_test : public beast::unit_test::suite
// Not recommended for the faint of heart...
bool unprotected = false;
auto const coro = jQueue.postCoro(
jtCLIENT, "PostCoroTest3", [&unprotected](std::shared_ptr<JobQueue::Coro> const&) {
JtClient, "PostCoroTest3", [&unprotected](std::shared_ptr<JobQueue::Coro> const&) {
unprotected = false;
});
BEAST_EXPECT(coro == nullptr);