mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-20 11:45:53 +00:00
[CI] clang-tidy auto fixes (#1190)
This commit is contained in:
committed by
GitHub
parent
97a63db51d
commit
9b0dab602f
@@ -71,7 +71,7 @@ struct BasicScheduledOperation {
|
|||||||
void
|
void
|
||||||
emplace(auto&& op)
|
emplace(auto&& op)
|
||||||
{
|
{
|
||||||
std::lock_guard lock{m_};
|
std::lock_guard const lock{m_};
|
||||||
op_.emplace(std::forward<decltype(op)>(op));
|
op_.emplace(std::forward<decltype(op)>(op));
|
||||||
ready_.notify_all();
|
ready_.notify_all();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,8 +43,8 @@ INSTANTIATE_TEST_CASE_P(AnyStopTokenGroup, AnyStopTokenTests, ValuesIn({true, fa
|
|||||||
|
|
||||||
TEST_P(AnyStopTokenTests, CanCopy)
|
TEST_P(AnyStopTokenTests, CanCopy)
|
||||||
{
|
{
|
||||||
AnyStopToken stopToken{FakeStopToken{GetParam()}};
|
AnyStopToken const stopToken{FakeStopToken{GetParam()}};
|
||||||
AnyStopToken token = stopToken;
|
AnyStopToken const token = stopToken;
|
||||||
|
|
||||||
EXPECT_EQ(token, stopToken);
|
EXPECT_EQ(token, stopToken);
|
||||||
}
|
}
|
||||||
@@ -52,7 +52,7 @@ TEST_P(AnyStopTokenTests, CanCopy)
|
|||||||
TEST_P(AnyStopTokenTests, IsStopRequestedCallPropagated)
|
TEST_P(AnyStopTokenTests, IsStopRequestedCallPropagated)
|
||||||
{
|
{
|
||||||
auto const flag = GetParam();
|
auto const flag = GetParam();
|
||||||
AnyStopToken stopToken{FakeStopToken{flag}};
|
AnyStopToken const stopToken{FakeStopToken{flag}};
|
||||||
|
|
||||||
EXPECT_EQ(stopToken.isStopRequested(), flag);
|
EXPECT_EQ(stopToken.isStopRequested(), flag);
|
||||||
EXPECT_EQ(stopToken, flag);
|
EXPECT_EQ(stopToken, flag);
|
||||||
|
|||||||
@@ -20,7 +20,6 @@
|
|||||||
#include "util/async/context/BasicExecutionContext.hpp"
|
#include "util/async/context/BasicExecutionContext.hpp"
|
||||||
#include "util/async/context/SyncExecutionContext.hpp"
|
#include "util/async/context/SyncExecutionContext.hpp"
|
||||||
|
|
||||||
#include <gmock/gmock.h>
|
|
||||||
#include <gtest/gtest.h>
|
#include <gtest/gtest.h>
|
||||||
|
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
|
|||||||
Reference in New Issue
Block a user