chore: No ALL_CAPS (#1760)

Fixes #1680
This commit is contained in:
Alex Kremer
2025-01-02 11:39:31 +00:00
committed by GitHub
parent efe5d08205
commit 820b32c6d7
361 changed files with 10061 additions and 9724 deletions

View File

@@ -34,7 +34,7 @@ using namespace util::config;
struct IntervalSweepHandlerTest : SyncAsioContextTest {
protected:
constexpr static auto JSONData = R"JSON(
static constexpr auto kJSON_DATA = R"JSON(
{
"dos_guard": {
"sweep_interval": 0
@@ -42,14 +42,14 @@ protected:
}
)JSON";
DOSGuardStrictMock guardMock;
DOSGuardStrictMock guardMock_;
ClioConfigDefinition cfg{{"dos_guard.sweep_interval", ConfigValue{ConfigType::Integer}.defaultValue(0)}};
IntervalSweepHandler sweepHandler{cfg, ctx, guardMock};
ClioConfigDefinition cfg_{{"dos_guard.sweep_interval", ConfigValue{ConfigType::Integer}.defaultValue(0)}};
IntervalSweepHandler sweepHandler_{cfg_, ctx_, guardMock_};
};
TEST_F(IntervalSweepHandlerTest, SweepAfterInterval)
{
EXPECT_CALL(guardMock, clear()).Times(testing::AtLeast(10));
EXPECT_CALL(guardMock_, clear()).Times(testing::AtLeast(10));
runContextFor(std::chrono::milliseconds{20});
}