mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 16:56:48 +00:00
refactor: Enable clang-tidy readability-identifier-naming check (#6571)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user