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.
This commit is contained in:
Pratik Mankawde
2026-09-23 19:04:54 +01:00
parent 36865ee9d9
commit 653f766bc9

View File

@@ -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()));