From c5c7523c569c262574896e60b1a4c912456ac68d Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 20 Aug 2026 23:59:14 -0500 Subject: [PATCH] [core] Fix clang-tidy naming for static test helper --- tests/components/core/test_component_iterator.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/components/core/test_component_iterator.cpp b/tests/components/core/test_component_iterator.cpp index c1218227c4..03d467c920 100644 --- a/tests/components/core/test_component_iterator.cpp +++ b/tests/components/core/test_component_iterator.cpp @@ -23,8 +23,8 @@ class RefusingIterator : public ComponentIterator { #undef ENTITY_CONTROLLER_TYPE_ // NOLINTEND(bugprone-macro-parentheses) - bool on_begin() override { return this->step_(this->begin_calls, this->begin_refusals); } - bool on_end() override { return this->step_(this->end_calls, this->end_refusals); } + bool on_begin() override { return step(this->begin_calls, this->begin_refusals); } + bool on_end() override { return step(this->end_calls, this->end_refusals); } int begin_calls{0}; int end_calls{0}; @@ -32,7 +32,7 @@ class RefusingIterator : public ComponentIterator { int end_refusals{0}; protected: - static bool step_(int &calls, int &refusals) { + static bool step(int &calls, int &refusals) { calls++; if (refusals > 0) { refusals--; @@ -128,7 +128,7 @@ class ItemRefusingIterator : public RefusingIterator { public: bool on_sensor(sensor::Sensor *obj) override { this->last_sensor = obj; - if (!step_(this->sensor_calls, this->sensor_refusals)) + if (!step(this->sensor_calls, this->sensor_refusals)) return false; if (this->yield_on_sensor) this->yield_after_step_();