From 653f766bc9eb3fd0d8a363a775efc2caff62b06b Mon Sep 17 00:00:00 2001 From: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com> Date: Wed, 23 Sep 2026 19:04:54 +0100 Subject: [PATCH] style: Rename gtest test cases to snake_case develop's new fix-gtest-names pre-commit hook requires a snake_case test-case name. CI runs it with --all-files, so the existing CamelCase names fail the check on every branch that carries these files. --- src/tests/libxrpl/beast/insight/StatsDCollector.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/libxrpl/beast/insight/StatsDCollector.cpp b/src/tests/libxrpl/beast/insight/StatsDCollector.cpp index f9a9ac7346..827fdc5da0 100644 --- a/src/tests/libxrpl/beast/insight/StatsDCollector.cpp +++ b/src/tests/libxrpl/beast/insight/StatsDCollector.cpp @@ -131,7 +131,7 @@ private: * would otherwise never be sent and would never exist downstream. Absent and * zero must not look the same to an operator. */ -TEST(StatsDCollector, UntouchedGaugePublishesInitialZero) +TEST(StatsDCollector, untouched_gauge_publishes_initial_zero) { LoopbackStatsDServer server; auto const address = ip::Endpoint::fromString("127.0.0.1:" + std::to_string(server.port())); @@ -154,7 +154,7 @@ TEST(StatsDCollector, UntouchedGaugePublishesInitialZero) * comes along as a positive control. One flush tick serves both metrics, so a * counter line would have to travel beside the gauge's. */ -TEST(StatsDCollector, UntouchedCounterPublishesNothing) +TEST(StatsDCollector, untouched_counter_publishes_nothing) { LoopbackStatsDServer server; auto const address = ip::Endpoint::fromString("127.0.0.1:" + std::to_string(server.port()));