From fe59e4b9feb92f8ec0fe4d9cd2467ecea7253923 Mon Sep 17 00:00:00 2001 From: Tyler Veness Date: Fri, 17 Sep 2021 22:51:51 -0700 Subject: [PATCH] Make C++ test names more consistent (#3586) Inconsistent names were found using the following regular expressions. * `rg "TEST(_F|_P)?\(\w+,\s+\w+Test\)"` * `rg "TEST(_F|_P)?\(\w+,\s+Test\w+\)"` * `rg "TEST(_F|_P)?\(\w+Tests,\s+\w+\)"` Fixes #3495. --- .../cpp/{AnalogTests.cpp => AnalogTest.cpp} | 18 +++++++-------- .../native/cpp/{DIOTests.cpp => DIOTest.cpp} | 12 +++++----- .../{DutyCycleTests.cpp => DutyCycleTest.cpp} | 2 +- .../native/cpp/{PWMTests.cpp => PWMTest.cpp} | 22 +++++++++---------- ...layAnalogTests.cpp => RelayAnalogTest.cpp} | 2 +- ...yDigitalTests.cpp => RelayDigitalTest.cpp} | 10 ++++----- .../native/cpp/{HALTests.cpp => HALTest.cpp} | 2 +- hal/src/test/native/cpp/can/CANTest.cpp | 2 +- .../{HandleTests.cpp => HandleTest.cpp} | 2 +- ...ogInDataTests.cpp => AnalogInDataTest.cpp} | 2 +- ...OutDataTests.cpp => AnalogOutDataTest.cpp} | 2 +- .../{DIODataTests.cpp => DIODataTest.cpp} | 2 +- ...ataTests.cpp => DriverStationDataTest.cpp} | 4 ++-- .../{I2CDataTests.cpp => I2CDataTest.cpp} | 2 +- .../{PCMDataTests.cpp => PCMDataTest.cpp} | 2 +- .../{PDPDataTests.cpp => PDPDataTest.cpp} | 2 +- .../{PWMDataTests.cpp => PWMDataTest.cpp} | 2 +- .../{RelayDataTests.cpp => RelayDataTest.cpp} | 2 +- .../{SPIDataTests.cpp => SPIDataTest.cpp} | 2 +- ...iceDataTests.cpp => SimDeviceDataTest.cpp} | 2 +- .../cpp/{clockTest.cpp => ClockTest.cpp} | 2 +- .../native/cpp/frc2/command/ButtonTest.cpp | 18 +++++++-------- .../cpp/frc2/command/CommandDecoratorTest.cpp | 10 ++++----- .../frc2/command/CommandRequirementsTest.cpp | 6 ++--- .../cpp/frc2/command/CommandScheduleTest.cpp | 10 ++++----- .../frc2/command/ConditionalCommandTest.cpp | 4 ++-- .../cpp/frc2/command/DefaultCommandTest.cpp | 4 ++-- .../frc2/command/FunctionalCommandTest.cpp | 2 +- .../cpp/frc2/command/InstantCommandTest.cpp | 2 +- .../cpp/frc2/command/NotifierCommandTest.cpp | 2 +- .../native/cpp/frc2/command/POVButtonTest.cpp | 2 +- .../frc2/command/ParallelCommandGroupTest.cpp | 10 ++++----- .../command/ParallelDeadlineGroupTest.cpp | 10 ++++----- .../frc2/command/ParallelRaceGroupTest.cpp | 14 ++++++------ .../cpp/frc2/command/PerpetualCommandTest.cpp | 2 +- .../cpp/frc2/command/PrintCommandTest.cpp | 2 +- .../frc2/command/ProxyScheduleCommandTest.cpp | 4 ++-- .../frc2/command/RobotDisabledCommandTest.cpp | 16 +++++++------- .../cpp/frc2/command/RunCommandTest.cpp | 2 +- .../cpp/frc2/command/ScheduleCommandTest.cpp | 2 +- .../native/cpp/frc2/command/SchedulerTest.cpp | 6 ++--- .../cpp/frc2/command/SelectCommandTest.cpp | 4 ++-- .../command/SequentialCommandGroupTest.cpp | 10 ++++----- .../cpp/frc2/command/StartEndCommandTest.cpp | 2 +- .../cpp/frc2/command/WaitCommandTest.cpp | 2 +- .../cpp/frc2/command/WaitUntilCommandTest.cpp | 2 +- .../frc2/command/button/NetworkButtonTest.cpp | 2 +- .../native/cpp/simulation/ADXL345SimTest.cpp | 4 ++-- .../native/cpp/simulation/ADXL362SimTest.cpp | 2 +- .../cpp/simulation/AnalogEncoderSimTest.cpp | 2 +- .../cpp/simulation/DriverStationSimTest.cpp | 2 +- .../cpp/simulation/SimDeviceSimTest.cpp | 4 ++-- .../cpp/simulation/SimInitializationTest.cpp | 2 +- .../cpp/simulation/StateSpaceSimTest.cpp | 2 +- .../native/cpp/AnalogPotentiometerTest.cpp | 4 ++-- .../native/cpp/DigitalGlitchFilterTest.cpp | 2 +- .../src/main/native/cpp/FakeEncoderTest.cpp | 12 +++++----- .../src/main/native/cpp/NotifierTest.cpp | 4 ++-- wpimath/src/test/native/cpp/EigenTest.cpp | 6 ++--- .../cpp/controller/PIDInputOutputTest.cpp | 8 +++---- .../controller/ProfiledPIDInputOutputTest.cpp | 14 ++++++------ .../cpp/estimator/AngleStatisticsTest.cpp | 6 ++--- .../DifferentialDrivePoseEstimatorTest.cpp | 2 +- .../MecanumDrivePoseEstimatorTest.cpp | 2 +- .../estimator/MerweScaledSigmaPointsTest.cpp | 4 ++-- .../SwerveDrivePoseEstimatorTest.cpp | 2 +- .../native/cpp/filter/SlewRateLimiterTest.cpp | 4 ++-- .../kinematics/MecanumDriveKinematicsTest.cpp | 2 +- .../kinematics/MecanumDriveOdometryTest.cpp | 2 +- .../kinematics/SwerveDriveKinematicsTest.cpp | 2 +- .../test/native/cpp/CircularBufferTest.cpp | 16 +++++++------- .../native/cpp/StaticCircularBufferTest.cpp | 14 ++++++------ .../test/native/cpp/priority_mutex_test.cpp | 6 ++--- 73 files changed, 189 insertions(+), 189 deletions(-) rename crossConnIntegrationTests/src/main/native/cpp/{AnalogTests.cpp => AnalogTest.cpp} (84%) rename crossConnIntegrationTests/src/main/native/cpp/{DIOTests.cpp => DIOTest.cpp} (92%) rename crossConnIntegrationTests/src/main/native/cpp/{DutyCycleTests.cpp => DutyCycleTest.cpp} (94%) rename crossConnIntegrationTests/src/main/native/cpp/{PWMTests.cpp => PWMTest.cpp} (96%) rename crossConnIntegrationTests/src/main/native/cpp/{RelayAnalogTests.cpp => RelayAnalogTest.cpp} (93%) rename crossConnIntegrationTests/src/main/native/cpp/{RelayDigitalTests.cpp => RelayDigitalTest.cpp} (92%) rename hal/src/test/native/cpp/{HALTests.cpp => HALTest.cpp} (92%) rename hal/src/test/native/cpp/handles/{HandleTests.cpp => HandleTest.cpp} (94%) rename hal/src/test/native/cpp/mockdata/{AnalogInDataTests.cpp => AnalogInDataTest.cpp} (98%) rename hal/src/test/native/cpp/mockdata/{AnalogOutDataTests.cpp => AnalogOutDataTest.cpp} (98%) rename hal/src/test/native/cpp/mockdata/{DIODataTests.cpp => DIODataTest.cpp} (98%) rename hal/src/test/native/cpp/mockdata/{DriverStationDataTests.cpp => DriverStationDataTest.cpp} (98%) rename hal/src/test/native/cpp/mockdata/{I2CDataTests.cpp => I2CDataTest.cpp} (96%) rename hal/src/test/native/cpp/mockdata/{PCMDataTests.cpp => PCMDataTest.cpp} (98%) rename hal/src/test/native/cpp/mockdata/{PDPDataTests.cpp => PDPDataTest.cpp} (96%) rename hal/src/test/native/cpp/mockdata/{PWMDataTests.cpp => PWMDataTest.cpp} (98%) rename hal/src/test/native/cpp/mockdata/{RelayDataTests.cpp => RelayDataTest.cpp} (98%) rename hal/src/test/native/cpp/mockdata/{SPIDataTests.cpp => SPIDataTest.cpp} (96%) rename hal/src/test/native/cpp/mockdata/{SimDeviceDataTests.cpp => SimDeviceDataTest.cpp} (94%) rename simulation/frc_gazebo_plugins/src/clockTest/cpp/{clockTest.cpp => ClockTest.cpp} (98%) diff --git a/crossConnIntegrationTests/src/main/native/cpp/AnalogTests.cpp b/crossConnIntegrationTests/src/main/native/cpp/AnalogTest.cpp similarity index 84% rename from crossConnIntegrationTests/src/main/native/cpp/AnalogTests.cpp rename to crossConnIntegrationTests/src/main/native/cpp/AnalogTest.cpp index cbb85df352..7087487f4f 100644 --- a/crossConnIntegrationTests/src/main/native/cpp/AnalogTests.cpp +++ b/crossConnIntegrationTests/src/main/native/cpp/AnalogTest.cpp @@ -14,7 +14,7 @@ using namespace hlt; class AnalogCrossTest : public ::testing::TestWithParam> {}; -TEST_P(AnalogCrossTest, TestAnalogCross) { +TEST_P(AnalogCrossTest, AnalogCross) { auto param = GetParam(); int32_t status = 0; @@ -40,7 +40,7 @@ TEST_P(AnalogCrossTest, TestAnalogCross) { } } -TEST(AnalogInputTest, TestAllocateAll) { +TEST(AnalogInputTest, AllocateAll) { wpi::SmallVector analogHandles; for (int i = 0; i < HAL_GetNumAnalogInputs(); i++) { int32_t status = 0; @@ -49,7 +49,7 @@ TEST(AnalogInputTest, TestAllocateAll) { } } -TEST(AnalogInputTest, TestMultipleAllocateFails) { +TEST(AnalogInputTest, MultipleAllocateFails) { int32_t status = 0; AnalogInputHandle handle(0, &status); ASSERT_NE(handle, HAL_kInvalidHandle); @@ -60,21 +60,21 @@ TEST(AnalogInputTest, TestMultipleAllocateFails) { ASSERT_LAST_ERROR_STATUS(status, RESOURCE_IS_ALLOCATED); } -TEST(AnalogInputTest, TestOverAllocateFails) { +TEST(AnalogInputTest, OverAllocateFails) { int32_t status = 0; AnalogInputHandle handle(HAL_GetNumAnalogInputs(), &status); ASSERT_EQ(handle, HAL_kInvalidHandle); ASSERT_LAST_ERROR_STATUS(status, RESOURCE_OUT_OF_RANGE); } -TEST(AnalogInputTest, TestUnderAllocateFails) { +TEST(AnalogInputTest, UnderAllocateFails) { int32_t status = 0; AnalogInputHandle handle(-1, &status); ASSERT_EQ(handle, HAL_kInvalidHandle); ASSERT_LAST_ERROR_STATUS(status, RESOURCE_OUT_OF_RANGE); } -TEST(AnalogOutputTest, TestAllocateAll) { +TEST(AnalogOutputTest, AllocateAll) { wpi::SmallVector analogHandles; for (int i = 0; i < HAL_GetNumAnalogOutputs(); i++) { int32_t status = 0; @@ -83,7 +83,7 @@ TEST(AnalogOutputTest, TestAllocateAll) { } } -TEST(AnalogOutputTest, TestMultipleAllocateFails) { +TEST(AnalogOutputTest, MultipleAllocateFails) { int32_t status = 0; AnalogOutputHandle handle(0, &status); ASSERT_NE(handle, HAL_kInvalidHandle); @@ -94,14 +94,14 @@ TEST(AnalogOutputTest, TestMultipleAllocateFails) { ASSERT_LAST_ERROR_STATUS(status, RESOURCE_IS_ALLOCATED); } -TEST(AnalogOutputTest, TestOverAllocateFails) { +TEST(AnalogOutputTest, OverAllocateFails) { int32_t status = 0; AnalogOutputHandle handle(HAL_GetNumAnalogOutputs(), &status); ASSERT_EQ(handle, HAL_kInvalidHandle); ASSERT_LAST_ERROR_STATUS(status, RESOURCE_OUT_OF_RANGE); } -TEST(AnalogOutputTest, TestUnderAllocateFails) { +TEST(AnalogOutputTest, UnderAllocateFails) { int32_t status = 0; AnalogOutputHandle handle(-1, &status); ASSERT_EQ(handle, HAL_kInvalidHandle); diff --git a/crossConnIntegrationTests/src/main/native/cpp/DIOTests.cpp b/crossConnIntegrationTests/src/main/native/cpp/DIOTest.cpp similarity index 92% rename from crossConnIntegrationTests/src/main/native/cpp/DIOTests.cpp rename to crossConnIntegrationTests/src/main/native/cpp/DIOTest.cpp index 7e0384dabc..aa1208faaa 100644 --- a/crossConnIntegrationTests/src/main/native/cpp/DIOTests.cpp +++ b/crossConnIntegrationTests/src/main/native/cpp/DIOTest.cpp @@ -13,7 +13,7 @@ using namespace hlt; class DIOTest : public ::testing::TestWithParam> {}; -TEST_P(DIOTest, TestDIOCross) { +TEST_P(DIOTest, DIOCross) { auto param = GetParam(); int32_t status = 0; DIOHandle first{param.first, false, &status}; @@ -53,7 +53,7 @@ TEST_P(DIOTest, TestDIOCross) { ASSERT_EQ(0, status); } -TEST(DIOTest, TestAllocateAll) { +TEST(DIOTest, AllocateAll) { wpi::SmallVector dioHandles; for (int i = 0; i < HAL_GetNumDigitalChannels(); i++) { int32_t status = 0; @@ -62,7 +62,7 @@ TEST(DIOTest, TestAllocateAll) { } } -TEST(DIOTest, TestMultipleAllocateFails) { +TEST(DIOTest, MultipleAllocateFails) { int32_t status = 0; DIOHandle handle(0, true, &status); ASSERT_NE(handle, HAL_kInvalidHandle); @@ -73,21 +73,21 @@ TEST(DIOTest, TestMultipleAllocateFails) { ASSERT_LAST_ERROR_STATUS(status, RESOURCE_IS_ALLOCATED); } -TEST(DIOTest, TestOverAllocateFails) { +TEST(DIOTest, OverAllocateFails) { int32_t status = 0; DIOHandle handle(HAL_GetNumDigitalChannels(), true, &status); ASSERT_EQ(handle, HAL_kInvalidHandle); ASSERT_LAST_ERROR_STATUS(status, RESOURCE_OUT_OF_RANGE); } -TEST(DIOTest, TestUnderAllocateFails) { +TEST(DIOTest, UnderAllocateFails) { int32_t status = 0; DIOHandle handle(-1, true, &status); ASSERT_EQ(handle, HAL_kInvalidHandle); ASSERT_LAST_ERROR_STATUS(status, RESOURCE_OUT_OF_RANGE); } -TEST(DIOTest, TestCrossAllocationFails) { +TEST(DIOTest, CrossAllocationFails) { int32_t status = 0; PWMHandle pwmHandle(10, &status); ASSERT_NE(pwmHandle, HAL_kInvalidHandle); diff --git a/crossConnIntegrationTests/src/main/native/cpp/DutyCycleTests.cpp b/crossConnIntegrationTests/src/main/native/cpp/DutyCycleTest.cpp similarity index 94% rename from crossConnIntegrationTests/src/main/native/cpp/DutyCycleTests.cpp rename to crossConnIntegrationTests/src/main/native/cpp/DutyCycleTest.cpp index 9b036c778f..b8ca1ffd27 100644 --- a/crossConnIntegrationTests/src/main/native/cpp/DutyCycleTests.cpp +++ b/crossConnIntegrationTests/src/main/native/cpp/DutyCycleTest.cpp @@ -12,7 +12,7 @@ using namespace hlt; class DutyCycleTest : public ::testing::TestWithParam> {}; -TEST_P(DutyCycleTest, TestDutyCycle) { +TEST_P(DutyCycleTest, DutyCycle) { auto param = GetParam(); int32_t status = 0; diff --git a/crossConnIntegrationTests/src/main/native/cpp/PWMTests.cpp b/crossConnIntegrationTests/src/main/native/cpp/PWMTest.cpp similarity index 96% rename from crossConnIntegrationTests/src/main/native/cpp/PWMTests.cpp rename to crossConnIntegrationTests/src/main/native/cpp/PWMTest.cpp index 0757cfecd2..27fcce7ce9 100644 --- a/crossConnIntegrationTests/src/main/native/cpp/PWMTests.cpp +++ b/crossConnIntegrationTests/src/main/native/cpp/PWMTest.cpp @@ -279,37 +279,37 @@ void TestTiming(int squelch, std::pair param) { } } -TEST_P(PWMTest, TestTiming4x) { +TEST_P(PWMTest, Timing4x) { auto param = GetParam(); TestTiming(3, param); } -TEST_P(PWMTest, TestTiming2x) { +TEST_P(PWMTest, Timing2x) { auto param = GetParam(); TestTiming(1, param); } -TEST_P(PWMTest, TestTiming1x) { +TEST_P(PWMTest, Timing1x) { auto param = GetParam(); TestTiming(0, param); } -TEST_P(PWMTest, TestTimingDMA4x) { +TEST_P(PWMTest, TimingDMA4x) { auto param = GetParam(); TestTimingDMA(3, param); } -TEST_P(PWMTest, TestTimingDMA2x) { +TEST_P(PWMTest, TimingDMA2x) { auto param = GetParam(); TestTimingDMA(1, param); } -TEST_P(PWMTest, TestTimingDMA1x) { +TEST_P(PWMTest, TimingDMA1x) { auto param = GetParam(); TestTimingDMA(0, param); } -TEST(PWMTest, TestAllocateAll) { +TEST(PWMTest, AllocateAll) { wpi::SmallVector pwmHandles; for (int i = 0; i < HAL_GetNumPWMChannels(); i++) { int32_t status = 0; @@ -318,7 +318,7 @@ TEST(PWMTest, TestAllocateAll) { } } -TEST(PWMTest, TestMultipleAllocateFails) { +TEST(PWMTest, MultipleAllocateFails) { int32_t status = 0; PWMHandle handle(0, &status); ASSERT_NE(handle, HAL_kInvalidHandle); @@ -329,21 +329,21 @@ TEST(PWMTest, TestMultipleAllocateFails) { ASSERT_LAST_ERROR_STATUS(status, RESOURCE_IS_ALLOCATED); } -TEST(PWMTest, TestOverAllocateFails) { +TEST(PWMTest, OverAllocateFails) { int32_t status = 0; PWMHandle handle(HAL_GetNumPWMChannels(), &status); ASSERT_EQ(handle, HAL_kInvalidHandle); ASSERT_LAST_ERROR_STATUS(status, RESOURCE_OUT_OF_RANGE); } -TEST(PWMTest, TestUnderAllocateFails) { +TEST(PWMTest, UnderAllocateFails) { int32_t status = 0; PWMHandle handle(-1, &status); ASSERT_EQ(handle, HAL_kInvalidHandle); ASSERT_LAST_ERROR_STATUS(status, RESOURCE_OUT_OF_RANGE); } -TEST(PWMTest, TestCrossAllocationFails) { +TEST(PWMTest, CrossAllocationFails) { int32_t status = 0; DIOHandle dioHandle(10, true, &status); ASSERT_NE(dioHandle, HAL_kInvalidHandle); diff --git a/crossConnIntegrationTests/src/main/native/cpp/RelayAnalogTests.cpp b/crossConnIntegrationTests/src/main/native/cpp/RelayAnalogTest.cpp similarity index 93% rename from crossConnIntegrationTests/src/main/native/cpp/RelayAnalogTests.cpp rename to crossConnIntegrationTests/src/main/native/cpp/RelayAnalogTest.cpp index bed92eec36..1122de9913 100644 --- a/crossConnIntegrationTests/src/main/native/cpp/RelayAnalogTests.cpp +++ b/crossConnIntegrationTests/src/main/native/cpp/RelayAnalogTest.cpp @@ -14,7 +14,7 @@ using namespace hlt; class RelayAnalogTest : public ::testing::TestWithParam> {}; -TEST_P(RelayAnalogTest, TestRelayAnalogCross) { +TEST_P(RelayAnalogTest, RelayAnalogCross) { auto param = GetParam(); int32_t status = 0; diff --git a/crossConnIntegrationTests/src/main/native/cpp/RelayDigitalTests.cpp b/crossConnIntegrationTests/src/main/native/cpp/RelayDigitalTest.cpp similarity index 92% rename from crossConnIntegrationTests/src/main/native/cpp/RelayDigitalTests.cpp rename to crossConnIntegrationTests/src/main/native/cpp/RelayDigitalTest.cpp index 5586d24a23..50d830ccef 100644 --- a/crossConnIntegrationTests/src/main/native/cpp/RelayDigitalTests.cpp +++ b/crossConnIntegrationTests/src/main/native/cpp/RelayDigitalTest.cpp @@ -13,7 +13,7 @@ using namespace hlt; class RelayDigitalTest : public ::testing::TestWithParam {}; -TEST_P(RelayDigitalTest, TestRelayCross) { +TEST_P(RelayDigitalTest, RelayCross) { auto param = GetParam(); int32_t status = 0; RelayHandle fwd{param.Relay, true, &status}; @@ -66,7 +66,7 @@ TEST_P(RelayDigitalTest, TestRelayCross) { ASSERT_EQ(0, status); } -TEST(RelayDigitalTest, TestAllocateAll) { +TEST(RelayDigitalTest, AllocateAll) { wpi::SmallVector relayHandles; for (int i = 0; i < HAL_GetNumRelayChannels(); i++) { int32_t status = 0; @@ -75,7 +75,7 @@ TEST(RelayDigitalTest, TestAllocateAll) { } } -TEST(RelayDigitalTest, TestMultipleAllocateFails) { +TEST(RelayDigitalTest, MultipleAllocateFails) { int32_t status = 0; RelayHandle handle(0, true, &status); ASSERT_NE(handle, HAL_kInvalidHandle); @@ -86,14 +86,14 @@ TEST(RelayDigitalTest, TestMultipleAllocateFails) { ASSERT_LAST_ERROR_STATUS(status, RESOURCE_IS_ALLOCATED); } -TEST(RelayDigitalTest, TestOverAllocateFails) { +TEST(RelayDigitalTest, OverAllocateFails) { int32_t status = 0; RelayHandle handle(HAL_GetNumRelayChannels(), true, &status); ASSERT_EQ(handle, HAL_kInvalidHandle); ASSERT_LAST_ERROR_STATUS(status, RESOURCE_OUT_OF_RANGE); } -TEST(RelayDigitalTest, TestUnderAllocateFails) { +TEST(RelayDigitalTest, UnderAllocateFails) { int32_t status = 0; RelayHandle handle(-1, true, &status); ASSERT_EQ(handle, HAL_kInvalidHandle); diff --git a/hal/src/test/native/cpp/HALTests.cpp b/hal/src/test/native/cpp/HALTest.cpp similarity index 92% rename from hal/src/test/native/cpp/HALTests.cpp rename to hal/src/test/native/cpp/HALTest.cpp index bda54b8736..62a4f856d3 100644 --- a/hal/src/test/native/cpp/HALTests.cpp +++ b/hal/src/test/native/cpp/HALTest.cpp @@ -6,7 +6,7 @@ #include "hal/HAL.h" namespace hal { -TEST(HALTests, RuntimeType) { +TEST(HALTest, RuntimeType) { EXPECT_EQ(HAL_RuntimeType::HAL_Runtime_Simulation, HAL_GetRuntimeType()); } } // namespace hal diff --git a/hal/src/test/native/cpp/can/CANTest.cpp b/hal/src/test/native/cpp/can/CANTest.cpp index 5405e6c01b..db9dbf5ab1 100644 --- a/hal/src/test/native/cpp/can/CANTest.cpp +++ b/hal/src/test/native/cpp/can/CANTest.cpp @@ -38,7 +38,7 @@ struct CANSendCallbackStore { int32_t handle; }; -TEST(HALCanTests, CanIdPackingTest) { +TEST(CANTest, CanIdPacking) { int32_t status = 0; int32_t deviceId = 12; CANTestStore testStore(deviceId, &status); diff --git a/hal/src/test/native/cpp/handles/HandleTests.cpp b/hal/src/test/native/cpp/handles/HandleTest.cpp similarity index 94% rename from hal/src/test/native/cpp/handles/HandleTests.cpp rename to hal/src/test/native/cpp/handles/HandleTest.cpp index 4b7571fed9..5c98f7fc2a 100644 --- a/hal/src/test/native/cpp/handles/HandleTests.cpp +++ b/hal/src/test/native/cpp/handles/HandleTest.cpp @@ -13,7 +13,7 @@ class MyTestClass {}; } // namespace namespace hal { -TEST(HandleTests, ClassedHandleTest) { +TEST(HandleTest, ClassedHandle) { hal::IndexedClassedHandleResource testClass; diff --git a/hal/src/test/native/cpp/mockdata/AnalogInDataTests.cpp b/hal/src/test/native/cpp/mockdata/AnalogInDataTest.cpp similarity index 98% rename from hal/src/test/native/cpp/mockdata/AnalogInDataTests.cpp rename to hal/src/test/native/cpp/mockdata/AnalogInDataTest.cpp index 9bbd2f0170..284ebd6aca 100644 --- a/hal/src/test/native/cpp/mockdata/AnalogInDataTests.cpp +++ b/hal/src/test/native/cpp/mockdata/AnalogInDataTest.cpp @@ -19,7 +19,7 @@ void TestAnalogInInitializationCallback(const char* name, void* param, gTestAnalogInCallbackValue = *value; } -TEST(AnalogInSimTests, TestAnalogInInitialization) { +TEST(AnalogInSimTest, AnalogInInitialization) { const int INDEX_TO_TEST = 1; int callbackParam = 0; diff --git a/hal/src/test/native/cpp/mockdata/AnalogOutDataTests.cpp b/hal/src/test/native/cpp/mockdata/AnalogOutDataTest.cpp similarity index 98% rename from hal/src/test/native/cpp/mockdata/AnalogOutDataTests.cpp rename to hal/src/test/native/cpp/mockdata/AnalogOutDataTest.cpp index b6abb7913b..15a5fa610c 100644 --- a/hal/src/test/native/cpp/mockdata/AnalogOutDataTests.cpp +++ b/hal/src/test/native/cpp/mockdata/AnalogOutDataTest.cpp @@ -19,7 +19,7 @@ void TestAnalogOutInitializationCallback(const char* name, void* param, gTestAnalogOutCallbackValue = *value; } -TEST(AnalogOutSimTests, TestAnalogOutInitialization) { +TEST(AnalogOutSimTest, AnalogOutInitialization) { const int INDEX_TO_TEST = 1; int callbackParam = 0; diff --git a/hal/src/test/native/cpp/mockdata/DIODataTests.cpp b/hal/src/test/native/cpp/mockdata/DIODataTest.cpp similarity index 98% rename from hal/src/test/native/cpp/mockdata/DIODataTests.cpp rename to hal/src/test/native/cpp/mockdata/DIODataTest.cpp index 6de435d433..e8ab350c68 100644 --- a/hal/src/test/native/cpp/mockdata/DIODataTests.cpp +++ b/hal/src/test/native/cpp/mockdata/DIODataTest.cpp @@ -19,7 +19,7 @@ void TestDigitalIoInitializationCallback(const char* name, void* param, gTestDigitalIoCallbackValue = *value; } -TEST(DigitalIoSimTests, TestDigitalIoInitialization) { +TEST(DigitalIoSimTest, DigitalIoInitialization) { const int INDEX_TO_TEST = 3; int callbackParam = 0; diff --git a/hal/src/test/native/cpp/mockdata/DriverStationDataTests.cpp b/hal/src/test/native/cpp/mockdata/DriverStationDataTest.cpp similarity index 98% rename from hal/src/test/native/cpp/mockdata/DriverStationDataTests.cpp rename to hal/src/test/native/cpp/mockdata/DriverStationDataTest.cpp index 9f50266c8c..4925e162b7 100644 --- a/hal/src/test/native/cpp/mockdata/DriverStationDataTests.cpp +++ b/hal/src/test/native/cpp/mockdata/DriverStationDataTest.cpp @@ -10,7 +10,7 @@ namespace hal { -TEST(DriverStationTests, JoystickTests) { +TEST(DriverStationTest, Joystick) { HAL_JoystickAxes axes; HAL_JoystickPOVs povs; HAL_JoystickButtons buttons; @@ -109,7 +109,7 @@ TEST(DriverStationTests, JoystickTests) { } } -TEST(DriverStationTests, EventInfoTest) { +TEST(DriverStationTest, EventInfo) { std::string eventName = "UnitTest"; std::string gameData = "Insert game specific info here :D"; HAL_MatchInfo info; diff --git a/hal/src/test/native/cpp/mockdata/I2CDataTests.cpp b/hal/src/test/native/cpp/mockdata/I2CDataTest.cpp similarity index 96% rename from hal/src/test/native/cpp/mockdata/I2CDataTests.cpp rename to hal/src/test/native/cpp/mockdata/I2CDataTest.cpp index 03131c9a04..7678a4aa00 100644 --- a/hal/src/test/native/cpp/mockdata/I2CDataTests.cpp +++ b/hal/src/test/native/cpp/mockdata/I2CDataTest.cpp @@ -19,7 +19,7 @@ void TestI2CInitializationCallback(const char* name, void* param, gTestI2CCallbackValue = *value; } -TEST(I2CSimTests, TestI2CInitialization) { +TEST(I2CSimTest, I2CInitialization) { const int INDEX_TO_TEST = 1; int32_t status = 0; diff --git a/hal/src/test/native/cpp/mockdata/PCMDataTests.cpp b/hal/src/test/native/cpp/mockdata/PCMDataTest.cpp similarity index 98% rename from hal/src/test/native/cpp/mockdata/PCMDataTests.cpp rename to hal/src/test/native/cpp/mockdata/PCMDataTest.cpp index a94f7b2dd8..58a94c0719 100644 --- a/hal/src/test/native/cpp/mockdata/PCMDataTests.cpp +++ b/hal/src/test/native/cpp/mockdata/PCMDataTest.cpp @@ -19,7 +19,7 @@ void TestSolenoidInitializationCallback(const char* name, void* param, gTestSolenoidCallbackValue = *value; } -TEST(SolenoidSimTests, TestPCMInitialization) { +TEST(PCMDataTest, PCMInitialization) { const int MODULE_TO_TEST = 2; int callbackParam = 0; diff --git a/hal/src/test/native/cpp/mockdata/PDPDataTests.cpp b/hal/src/test/native/cpp/mockdata/PDPDataTest.cpp similarity index 96% rename from hal/src/test/native/cpp/mockdata/PDPDataTests.cpp rename to hal/src/test/native/cpp/mockdata/PDPDataTest.cpp index faa58e9839..59b3ea4098 100644 --- a/hal/src/test/native/cpp/mockdata/PDPDataTests.cpp +++ b/hal/src/test/native/cpp/mockdata/PDPDataTest.cpp @@ -19,7 +19,7 @@ void TestPdpInitializationCallback(const char* name, void* param, gTestPdpCallbackValue = *value; } -TEST(PdpSimTests, TestPdpInitialization) { +TEST(PdpSimTest, PdpInitialization) { const int INDEX_TO_TEST = 1; int callbackParam = 0; diff --git a/hal/src/test/native/cpp/mockdata/PWMDataTests.cpp b/hal/src/test/native/cpp/mockdata/PWMDataTest.cpp similarity index 98% rename from hal/src/test/native/cpp/mockdata/PWMDataTests.cpp rename to hal/src/test/native/cpp/mockdata/PWMDataTest.cpp index d313694144..ab14704da7 100644 --- a/hal/src/test/native/cpp/mockdata/PWMDataTests.cpp +++ b/hal/src/test/native/cpp/mockdata/PWMDataTest.cpp @@ -19,7 +19,7 @@ void TestPwmInitializationCallback(const char* name, void* param, gTestPwmCallbackValue = *value; } -TEST(PWMSimTests, TestPwmInitialization) { +TEST(PWMSimTest, PwmInitialization) { const int INDEX_TO_TEST = 7; int callbackParam = 0; diff --git a/hal/src/test/native/cpp/mockdata/RelayDataTests.cpp b/hal/src/test/native/cpp/mockdata/RelayDataTest.cpp similarity index 98% rename from hal/src/test/native/cpp/mockdata/RelayDataTests.cpp rename to hal/src/test/native/cpp/mockdata/RelayDataTest.cpp index 6936d43d74..eef8631d71 100644 --- a/hal/src/test/native/cpp/mockdata/RelayDataTests.cpp +++ b/hal/src/test/native/cpp/mockdata/RelayDataTest.cpp @@ -19,7 +19,7 @@ void TestRelayInitializationCallback(const char* name, void* param, gTestRelayCallbackValue = *value; } -TEST(RelaySimTests, TestRelayInitialization) { +TEST(RelaySimTest, RelayInitialization) { const int INDEX_TO_TEST = 3; int callbackParam = 0; diff --git a/hal/src/test/native/cpp/mockdata/SPIDataTests.cpp b/hal/src/test/native/cpp/mockdata/SPIDataTest.cpp similarity index 96% rename from hal/src/test/native/cpp/mockdata/SPIDataTests.cpp rename to hal/src/test/native/cpp/mockdata/SPIDataTest.cpp index 24b82e4d86..c427eaff8a 100644 --- a/hal/src/test/native/cpp/mockdata/SPIDataTests.cpp +++ b/hal/src/test/native/cpp/mockdata/SPIDataTest.cpp @@ -19,7 +19,7 @@ void TestSpiInitializationCallback(const char* name, void* param, gTestSpiCallbackValue = *value; } -TEST(SpiSimTests, TestSpiInitialization) { +TEST(SpiSimTest, SpiInitialization) { const int INDEX_TO_TEST = 2; int32_t status = 0; diff --git a/hal/src/test/native/cpp/mockdata/SimDeviceDataTests.cpp b/hal/src/test/native/cpp/mockdata/SimDeviceDataTest.cpp similarity index 94% rename from hal/src/test/native/cpp/mockdata/SimDeviceDataTests.cpp rename to hal/src/test/native/cpp/mockdata/SimDeviceDataTest.cpp index fc10a52b08..1203fd7c9c 100644 --- a/hal/src/test/native/cpp/mockdata/SimDeviceDataTests.cpp +++ b/hal/src/test/native/cpp/mockdata/SimDeviceDataTest.cpp @@ -8,7 +8,7 @@ namespace hal { -TEST(SimDeviceSimTests, TestEnabled) { +TEST(SimDeviceSimTest, Enabled) { ASSERT_TRUE(HALSIM_IsSimDeviceEnabled("foo")); HALSIM_SetSimDeviceEnabled("f", false); HALSIM_SetSimDeviceEnabled("foob", true); diff --git a/simulation/frc_gazebo_plugins/src/clockTest/cpp/clockTest.cpp b/simulation/frc_gazebo_plugins/src/clockTest/cpp/ClockTest.cpp similarity index 98% rename from simulation/frc_gazebo_plugins/src/clockTest/cpp/clockTest.cpp rename to simulation/frc_gazebo_plugins/src/clockTest/cpp/ClockTest.cpp index 7d5f99afb9..84bde7881c 100644 --- a/simulation/frc_gazebo_plugins/src/clockTest/cpp/clockTest.cpp +++ b/simulation/frc_gazebo_plugins/src/clockTest/cpp/ClockTest.cpp @@ -22,7 +22,7 @@ void cb(gazebo::msgs::ConstFloat64Ptr& msg) { latest_time = msg->data(); } -TEST(ClockTests, TestClock) { +TEST(ClockTest, Clock) { gazebo::physics::WorldPtr world; ASSERT_TRUE(library); diff --git a/wpilibNewCommands/src/test/native/cpp/frc2/command/ButtonTest.cpp b/wpilibNewCommands/src/test/native/cpp/frc2/command/ButtonTest.cpp index bc0008212c..158e26b4d7 100644 --- a/wpilibNewCommands/src/test/native/cpp/frc2/command/ButtonTest.cpp +++ b/wpilibNewCommands/src/test/native/cpp/frc2/command/ButtonTest.cpp @@ -12,7 +12,7 @@ using namespace frc2; class ButtonTest : public CommandTestBase {}; -TEST_F(ButtonTest, WhenPressedTest) { +TEST_F(ButtonTest, WhenPressed) { auto& scheduler = CommandScheduler::GetInstance(); bool finished = false; bool pressed = false; @@ -30,7 +30,7 @@ TEST_F(ButtonTest, WhenPressedTest) { EXPECT_FALSE(scheduler.IsScheduled(&command)); } -TEST_F(ButtonTest, WhenReleasedTest) { +TEST_F(ButtonTest, WhenReleased) { auto& scheduler = CommandScheduler::GetInstance(); bool finished = false; bool pressed = false; @@ -48,7 +48,7 @@ TEST_F(ButtonTest, WhenReleasedTest) { EXPECT_FALSE(scheduler.IsScheduled(&command)); } -TEST_F(ButtonTest, WhileHeldTest) { +TEST_F(ButtonTest, WhileHeld) { auto& scheduler = CommandScheduler::GetInstance(); bool finished = false; bool pressed = false; @@ -71,7 +71,7 @@ TEST_F(ButtonTest, WhileHeldTest) { EXPECT_FALSE(scheduler.IsScheduled(&command)); } -TEST_F(ButtonTest, WhenHeldTest) { +TEST_F(ButtonTest, WhenHeld) { auto& scheduler = CommandScheduler::GetInstance(); bool finished = false; bool pressed = false; @@ -99,7 +99,7 @@ TEST_F(ButtonTest, WhenHeldTest) { EXPECT_FALSE(scheduler.IsScheduled(&command)); } -TEST_F(ButtonTest, ToggleWhenPressedTest) { +TEST_F(ButtonTest, ToggleWhenPressed) { auto& scheduler = CommandScheduler::GetInstance(); bool finished = false; bool pressed = false; @@ -119,7 +119,7 @@ TEST_F(ButtonTest, ToggleWhenPressedTest) { EXPECT_FALSE(scheduler.IsScheduled(&command)); } -TEST_F(ButtonTest, AndTest) { +TEST_F(ButtonTest, And) { auto& scheduler = CommandScheduler::GetInstance(); bool finished = false; bool pressed1 = false; @@ -137,7 +137,7 @@ TEST_F(ButtonTest, AndTest) { EXPECT_TRUE(scheduler.IsScheduled(&command)); } -TEST_F(ButtonTest, OrTest) { +TEST_F(ButtonTest, Or) { auto& scheduler = CommandScheduler::GetInstance(); bool finished = false; bool pressed1 = false; @@ -162,7 +162,7 @@ TEST_F(ButtonTest, OrTest) { EXPECT_TRUE(scheduler.IsScheduled(&command2)); } -TEST_F(ButtonTest, NegateTest) { +TEST_F(ButtonTest, Negate) { auto& scheduler = CommandScheduler::GetInstance(); bool finished = false; bool pressed = true; @@ -176,7 +176,7 @@ TEST_F(ButtonTest, NegateTest) { EXPECT_TRUE(scheduler.IsScheduled(&command)); } -TEST_F(ButtonTest, RValueButtonTest) { +TEST_F(ButtonTest, RValueButton) { auto& scheduler = CommandScheduler::GetInstance(); int counter = 0; bool pressed = false; diff --git a/wpilibNewCommands/src/test/native/cpp/frc2/command/CommandDecoratorTest.cpp b/wpilibNewCommands/src/test/native/cpp/frc2/command/CommandDecoratorTest.cpp index e6861bb941..5ae17cc690 100644 --- a/wpilibNewCommands/src/test/native/cpp/frc2/command/CommandDecoratorTest.cpp +++ b/wpilibNewCommands/src/test/native/cpp/frc2/command/CommandDecoratorTest.cpp @@ -14,7 +14,7 @@ using namespace frc2; class CommandDecoratorTest : public CommandTestBase {}; -TEST_F(CommandDecoratorTest, WithTimeoutTest) { +TEST_F(CommandDecoratorTest, WithTimeout) { CommandScheduler scheduler = GetScheduler(); frc::sim::PauseTiming(); @@ -34,7 +34,7 @@ TEST_F(CommandDecoratorTest, WithTimeoutTest) { frc::sim::ResumeTiming(); } -TEST_F(CommandDecoratorTest, WithInterruptTest) { +TEST_F(CommandDecoratorTest, WithInterrupt) { CommandScheduler scheduler = GetScheduler(); bool finished = false; @@ -53,7 +53,7 @@ TEST_F(CommandDecoratorTest, WithInterruptTest) { EXPECT_FALSE(scheduler.IsScheduled(&command)); } -TEST_F(CommandDecoratorTest, BeforeStartingTest) { +TEST_F(CommandDecoratorTest, BeforeStarting) { CommandScheduler scheduler = GetScheduler(); bool finished = false; @@ -71,7 +71,7 @@ TEST_F(CommandDecoratorTest, BeforeStartingTest) { EXPECT_FALSE(scheduler.IsScheduled(&command)); } -TEST_F(CommandDecoratorTest, AndThenTest) { +TEST_F(CommandDecoratorTest, AndThen) { CommandScheduler scheduler = GetScheduler(); bool finished = false; @@ -90,7 +90,7 @@ TEST_F(CommandDecoratorTest, AndThenTest) { EXPECT_TRUE(finished); } -TEST_F(CommandDecoratorTest, PerpetuallyTest) { +TEST_F(CommandDecoratorTest, Perpetually) { CommandScheduler scheduler = GetScheduler(); auto command = InstantCommand([] {}, {}).Perpetually(); diff --git a/wpilibNewCommands/src/test/native/cpp/frc2/command/CommandRequirementsTest.cpp b/wpilibNewCommands/src/test/native/cpp/frc2/command/CommandRequirementsTest.cpp index cf673d8bc6..c81267081a 100644 --- a/wpilibNewCommands/src/test/native/cpp/frc2/command/CommandRequirementsTest.cpp +++ b/wpilibNewCommands/src/test/native/cpp/frc2/command/CommandRequirementsTest.cpp @@ -17,7 +17,7 @@ using namespace frc2; class CommandRequirementsTest : public CommandTestBase {}; -TEST_F(CommandRequirementsTest, RequirementInterruptTest) { +TEST_F(CommandRequirementsTest, RequirementInterrupt) { CommandScheduler scheduler = GetScheduler(); TestSubsystem requirement; @@ -44,7 +44,7 @@ TEST_F(CommandRequirementsTest, RequirementInterruptTest) { scheduler.Run(); } -TEST_F(CommandRequirementsTest, RequirementUninterruptibleTest) { +TEST_F(CommandRequirementsTest, RequirementUninterruptible) { CommandScheduler scheduler = GetScheduler(); TestSubsystem requirement; @@ -71,7 +71,7 @@ TEST_F(CommandRequirementsTest, RequirementUninterruptibleTest) { scheduler.Run(); } -TEST_F(CommandRequirementsTest, DefaultCommandRequirementErrorTest) { +TEST_F(CommandRequirementsTest, DefaultCommandRequirementError) { TestSubsystem requirement1; MockCommand command1; diff --git a/wpilibNewCommands/src/test/native/cpp/frc2/command/CommandScheduleTest.cpp b/wpilibNewCommands/src/test/native/cpp/frc2/command/CommandScheduleTest.cpp index e183b15f55..cb16b48433 100644 --- a/wpilibNewCommands/src/test/native/cpp/frc2/command/CommandScheduleTest.cpp +++ b/wpilibNewCommands/src/test/native/cpp/frc2/command/CommandScheduleTest.cpp @@ -7,7 +7,7 @@ using namespace frc2; class CommandScheduleTest : public CommandTestBase {}; -TEST_F(CommandScheduleTest, InstantScheduleTest) { +TEST_F(CommandScheduleTest, InstantSchedule) { CommandScheduler scheduler = GetScheduler(); MockCommand command; @@ -22,7 +22,7 @@ TEST_F(CommandScheduleTest, InstantScheduleTest) { EXPECT_FALSE(scheduler.IsScheduled(&command)); } -TEST_F(CommandScheduleTest, SingleIterationScheduleTest) { +TEST_F(CommandScheduleTest, SingleIterationSchedule) { CommandScheduler scheduler = GetScheduler(); MockCommand command; @@ -38,7 +38,7 @@ TEST_F(CommandScheduleTest, SingleIterationScheduleTest) { EXPECT_FALSE(scheduler.IsScheduled(&command)); } -TEST_F(CommandScheduleTest, MultiScheduleTest) { +TEST_F(CommandScheduleTest, MultiSchedule) { CommandScheduler scheduler = GetScheduler(); MockCommand command1; MockCommand command2; @@ -75,7 +75,7 @@ TEST_F(CommandScheduleTest, MultiScheduleTest) { EXPECT_FALSE(scheduler.IsScheduled({&command1, &command2, &command3})); } -TEST_F(CommandScheduleTest, SchedulerCancelTest) { +TEST_F(CommandScheduleTest, SchedulerCancel) { CommandScheduler scheduler = GetScheduler(); MockCommand command; @@ -92,7 +92,7 @@ TEST_F(CommandScheduleTest, SchedulerCancelTest) { EXPECT_FALSE(scheduler.IsScheduled(&command)); } -TEST_F(CommandScheduleTest, NotScheduledCancelTest) { +TEST_F(CommandScheduleTest, NotScheduledCancel) { CommandScheduler scheduler = GetScheduler(); MockCommand command; diff --git a/wpilibNewCommands/src/test/native/cpp/frc2/command/ConditionalCommandTest.cpp b/wpilibNewCommands/src/test/native/cpp/frc2/command/ConditionalCommandTest.cpp index 03df632250..27b89e58b7 100644 --- a/wpilibNewCommands/src/test/native/cpp/frc2/command/ConditionalCommandTest.cpp +++ b/wpilibNewCommands/src/test/native/cpp/frc2/command/ConditionalCommandTest.cpp @@ -10,7 +10,7 @@ using namespace frc2; class ConditionalCommandTest : public CommandTestBase {}; -TEST_F(ConditionalCommandTest, ConditionalCommandScheduleTest) { +TEST_F(ConditionalCommandTest, ConditionalCommandSchedule) { CommandScheduler scheduler = GetScheduler(); std::unique_ptr mock = std::make_unique(); @@ -31,7 +31,7 @@ TEST_F(ConditionalCommandTest, ConditionalCommandScheduleTest) { EXPECT_FALSE(scheduler.IsScheduled(&conditional)); } -TEST_F(ConditionalCommandTest, ConditionalCommandRequirementTest) { +TEST_F(ConditionalCommandTest, ConditionalCommandRequirement) { CommandScheduler scheduler = GetScheduler(); TestSubsystem requirement1; diff --git a/wpilibNewCommands/src/test/native/cpp/frc2/command/DefaultCommandTest.cpp b/wpilibNewCommands/src/test/native/cpp/frc2/command/DefaultCommandTest.cpp index d4cb9fecd6..a9e3fc681c 100644 --- a/wpilibNewCommands/src/test/native/cpp/frc2/command/DefaultCommandTest.cpp +++ b/wpilibNewCommands/src/test/native/cpp/frc2/command/DefaultCommandTest.cpp @@ -8,7 +8,7 @@ using namespace frc2; class DefaultCommandTest : public CommandTestBase {}; -TEST_F(DefaultCommandTest, DefaultCommandScheduleTest) { +TEST_F(DefaultCommandTest, DefaultCommandSchedule) { CommandScheduler scheduler = GetScheduler(); TestSubsystem subsystem; @@ -22,7 +22,7 @@ TEST_F(DefaultCommandTest, DefaultCommandScheduleTest) { EXPECT_TRUE(scheduler.IsScheduled(handle)); } -TEST_F(DefaultCommandTest, DefaultCommandInterruptResumeTest) { +TEST_F(DefaultCommandTest, DefaultCommandInterruptResume) { CommandScheduler scheduler = GetScheduler(); TestSubsystem subsystem; diff --git a/wpilibNewCommands/src/test/native/cpp/frc2/command/FunctionalCommandTest.cpp b/wpilibNewCommands/src/test/native/cpp/frc2/command/FunctionalCommandTest.cpp index 08f6187266..0f0ebdabe7 100644 --- a/wpilibNewCommands/src/test/native/cpp/frc2/command/FunctionalCommandTest.cpp +++ b/wpilibNewCommands/src/test/native/cpp/frc2/command/FunctionalCommandTest.cpp @@ -8,7 +8,7 @@ using namespace frc2; class FunctionalCommandTest : public CommandTestBase {}; -TEST_F(FunctionalCommandTest, FunctionalCommandScheduleTest) { +TEST_F(FunctionalCommandTest, FunctionalCommandSchedule) { CommandScheduler scheduler = GetScheduler(); int counter = 0; diff --git a/wpilibNewCommands/src/test/native/cpp/frc2/command/InstantCommandTest.cpp b/wpilibNewCommands/src/test/native/cpp/frc2/command/InstantCommandTest.cpp index 40d0d43de6..90eab85223 100644 --- a/wpilibNewCommands/src/test/native/cpp/frc2/command/InstantCommandTest.cpp +++ b/wpilibNewCommands/src/test/native/cpp/frc2/command/InstantCommandTest.cpp @@ -8,7 +8,7 @@ using namespace frc2; class InstantCommandTest : public CommandTestBase {}; -TEST_F(InstantCommandTest, InstantCommandScheduleTest) { +TEST_F(InstantCommandTest, InstantCommandSchedule) { CommandScheduler scheduler = GetScheduler(); int counter = 0; diff --git a/wpilibNewCommands/src/test/native/cpp/frc2/command/NotifierCommandTest.cpp b/wpilibNewCommands/src/test/native/cpp/frc2/command/NotifierCommandTest.cpp index 2722fe4a97..00c9b89ea8 100644 --- a/wpilibNewCommands/src/test/native/cpp/frc2/command/NotifierCommandTest.cpp +++ b/wpilibNewCommands/src/test/native/cpp/frc2/command/NotifierCommandTest.cpp @@ -12,7 +12,7 @@ using namespace std::chrono_literals; class NotifierCommandTest : public CommandTestBase {}; -TEST_F(NotifierCommandTest, NotifierCommandScheduleTest) { +TEST_F(NotifierCommandTest, NotifierCommandSchedule) { CommandScheduler scheduler = GetScheduler(); frc::sim::PauseTiming(); diff --git a/wpilibNewCommands/src/test/native/cpp/frc2/command/POVButtonTest.cpp b/wpilibNewCommands/src/test/native/cpp/frc2/command/POVButtonTest.cpp index bba425f08c..5f6e733f15 100644 --- a/wpilibNewCommands/src/test/native/cpp/frc2/command/POVButtonTest.cpp +++ b/wpilibNewCommands/src/test/native/cpp/frc2/command/POVButtonTest.cpp @@ -15,7 +15,7 @@ using namespace frc2; class POVButtonTest : public CommandTestBase {}; -TEST_F(POVButtonTest, SetPOVTest) { +TEST_F(POVButtonTest, SetPOV) { frc::sim::JoystickSim joysim(1); joysim.SetPOV(0); joysim.NotifyNewData(); diff --git a/wpilibNewCommands/src/test/native/cpp/frc2/command/ParallelCommandGroupTest.cpp b/wpilibNewCommands/src/test/native/cpp/frc2/command/ParallelCommandGroupTest.cpp index 8897dfdb64..d6c0295f27 100644 --- a/wpilibNewCommands/src/test/native/cpp/frc2/command/ParallelCommandGroupTest.cpp +++ b/wpilibNewCommands/src/test/native/cpp/frc2/command/ParallelCommandGroupTest.cpp @@ -10,7 +10,7 @@ using namespace frc2; class ParallelCommandGroupTest : public CommandTestBase {}; -TEST_F(ParallelCommandGroupTest, ParallelGroupScheduleTest) { +TEST_F(ParallelCommandGroupTest, ParallelGroupSchedule) { CommandScheduler scheduler = GetScheduler(); std::unique_ptr command1Holder = std::make_unique(); @@ -40,7 +40,7 @@ TEST_F(ParallelCommandGroupTest, ParallelGroupScheduleTest) { EXPECT_FALSE(scheduler.IsScheduled(&group)); } -TEST_F(ParallelCommandGroupTest, ParallelGroupInterruptTest) { +TEST_F(ParallelCommandGroupTest, ParallelGroupInterrupt) { CommandScheduler scheduler = GetScheduler(); std::unique_ptr command1Holder = std::make_unique(); @@ -71,7 +71,7 @@ TEST_F(ParallelCommandGroupTest, ParallelGroupInterruptTest) { EXPECT_FALSE(scheduler.IsScheduled(&group)); } -TEST_F(ParallelCommandGroupTest, ParallelGroupNotScheduledCancelTest) { +TEST_F(ParallelCommandGroupTest, ParallelGroupNotScheduledCancel) { CommandScheduler scheduler = GetScheduler(); ParallelCommandGroup group((InstantCommand(), InstantCommand())); @@ -79,7 +79,7 @@ TEST_F(ParallelCommandGroupTest, ParallelGroupNotScheduledCancelTest) { EXPECT_NO_FATAL_FAILURE(scheduler.Cancel(&group)); } -TEST_F(ParallelCommandGroupTest, ParallelGroupCopyTest) { +TEST_F(ParallelCommandGroupTest, ParallelGroupCopy) { CommandScheduler scheduler = GetScheduler(); bool finished = false; @@ -95,7 +95,7 @@ TEST_F(ParallelCommandGroupTest, ParallelGroupCopyTest) { EXPECT_FALSE(scheduler.IsScheduled(&group)); } -TEST_F(ParallelCommandGroupTest, ParallelGroupRequirementTest) { +TEST_F(ParallelCommandGroupTest, ParallelGroupRequirement) { CommandScheduler scheduler = GetScheduler(); TestSubsystem requirement1; diff --git a/wpilibNewCommands/src/test/native/cpp/frc2/command/ParallelDeadlineGroupTest.cpp b/wpilibNewCommands/src/test/native/cpp/frc2/command/ParallelDeadlineGroupTest.cpp index 92a78ef85f..67d87202bb 100644 --- a/wpilibNewCommands/src/test/native/cpp/frc2/command/ParallelDeadlineGroupTest.cpp +++ b/wpilibNewCommands/src/test/native/cpp/frc2/command/ParallelDeadlineGroupTest.cpp @@ -10,7 +10,7 @@ using namespace frc2; class ParallelDeadlineGroupTest : public CommandTestBase {}; -TEST_F(ParallelDeadlineGroupTest, DeadlineGroupScheduleTest) { +TEST_F(ParallelDeadlineGroupTest, DeadlineGroupSchedule) { CommandScheduler scheduler = GetScheduler(); std::unique_ptr command1Holder = std::make_unique(); @@ -48,7 +48,7 @@ TEST_F(ParallelDeadlineGroupTest, DeadlineGroupScheduleTest) { EXPECT_FALSE(scheduler.IsScheduled(&group)); } -TEST_F(ParallelDeadlineGroupTest, SequentialGroupInterruptTest) { +TEST_F(ParallelDeadlineGroupTest, SequentialGroupInterrupt) { CommandScheduler scheduler = GetScheduler(); TestSubsystem subsystem; @@ -87,7 +87,7 @@ TEST_F(ParallelDeadlineGroupTest, SequentialGroupInterruptTest) { EXPECT_FALSE(scheduler.IsScheduled(&group)); } -TEST_F(ParallelDeadlineGroupTest, DeadlineGroupNotScheduledCancelTest) { +TEST_F(ParallelDeadlineGroupTest, DeadlineGroupNotScheduledCancel) { CommandScheduler scheduler = GetScheduler(); ParallelDeadlineGroup group{InstantCommand(), InstantCommand()}; @@ -95,7 +95,7 @@ TEST_F(ParallelDeadlineGroupTest, DeadlineGroupNotScheduledCancelTest) { EXPECT_NO_FATAL_FAILURE(scheduler.Cancel(&group)); } -TEST_F(ParallelDeadlineGroupTest, ParallelDeadlineCopyTest) { +TEST_F(ParallelDeadlineGroupTest, ParallelDeadlineCopy) { CommandScheduler scheduler = GetScheduler(); bool finished = false; @@ -111,7 +111,7 @@ TEST_F(ParallelDeadlineGroupTest, ParallelDeadlineCopyTest) { EXPECT_FALSE(scheduler.IsScheduled(&group)); } -TEST_F(ParallelDeadlineGroupTest, ParallelDeadlineRequirementTest) { +TEST_F(ParallelDeadlineGroupTest, ParallelDeadlineRequirement) { CommandScheduler scheduler = GetScheduler(); TestSubsystem requirement1; diff --git a/wpilibNewCommands/src/test/native/cpp/frc2/command/ParallelRaceGroupTest.cpp b/wpilibNewCommands/src/test/native/cpp/frc2/command/ParallelRaceGroupTest.cpp index dc9ce7c31e..72f42747d4 100644 --- a/wpilibNewCommands/src/test/native/cpp/frc2/command/ParallelRaceGroupTest.cpp +++ b/wpilibNewCommands/src/test/native/cpp/frc2/command/ParallelRaceGroupTest.cpp @@ -11,7 +11,7 @@ using namespace frc2; class ParallelRaceGroupTest : public CommandTestBase {}; -TEST_F(ParallelRaceGroupTest, ParallelRaceScheduleTest) { +TEST_F(ParallelRaceGroupTest, ParallelRaceSchedule) { CommandScheduler scheduler = GetScheduler(); std::unique_ptr command1Holder = std::make_unique(); @@ -47,7 +47,7 @@ TEST_F(ParallelRaceGroupTest, ParallelRaceScheduleTest) { EXPECT_FALSE(scheduler.IsScheduled(&group)); } -TEST_F(ParallelRaceGroupTest, ParallelRaceInterruptTest) { +TEST_F(ParallelRaceGroupTest, ParallelRaceInterrupt) { CommandScheduler scheduler = GetScheduler(); std::unique_ptr command1Holder = std::make_unique(); @@ -83,7 +83,7 @@ TEST_F(ParallelRaceGroupTest, ParallelRaceInterruptTest) { EXPECT_FALSE(scheduler.IsScheduled(&group)); } -TEST_F(ParallelRaceGroupTest, ParallelRaceNotScheduledCancelTest) { +TEST_F(ParallelRaceGroupTest, ParallelRaceNotScheduledCancel) { CommandScheduler scheduler = GetScheduler(); ParallelRaceGroup group{InstantCommand(), InstantCommand()}; @@ -91,7 +91,7 @@ TEST_F(ParallelRaceGroupTest, ParallelRaceNotScheduledCancelTest) { EXPECT_NO_FATAL_FAILURE(scheduler.Cancel(&group)); } -TEST_F(ParallelRaceGroupTest, ParallelRaceCopyTest) { +TEST_F(ParallelRaceGroupTest, ParallelRaceCopy) { CommandScheduler scheduler = GetScheduler(); bool finished = false; @@ -107,7 +107,7 @@ TEST_F(ParallelRaceGroupTest, ParallelRaceCopyTest) { EXPECT_FALSE(scheduler.IsScheduled(&group)); } -TEST_F(ParallelRaceGroupTest, RaceGroupRequirementTest) { +TEST_F(ParallelRaceGroupTest, RaceGroupRequirement) { CommandScheduler scheduler = GetScheduler(); TestSubsystem requirement1; @@ -128,7 +128,7 @@ TEST_F(ParallelRaceGroupTest, RaceGroupRequirementTest) { EXPECT_FALSE(scheduler.IsScheduled(&group)); } -TEST_F(ParallelRaceGroupTest, ParallelRaceOnlyCallsEndOnceTest) { +TEST_F(ParallelRaceGroupTest, ParallelRaceOnlyCallsEndOnce) { CommandScheduler scheduler = GetScheduler(); bool finished1 = false; @@ -152,7 +152,7 @@ TEST_F(ParallelRaceGroupTest, ParallelRaceOnlyCallsEndOnceTest) { EXPECT_FALSE(scheduler.IsScheduled(&group2)); } -TEST_F(ParallelRaceGroupTest, ParallelRaceScheduleTwiceTest) { +TEST_F(ParallelRaceGroupTest, ParallelRaceScheduleTwice) { CommandScheduler scheduler = GetScheduler(); std::unique_ptr command1Holder = std::make_unique(); diff --git a/wpilibNewCommands/src/test/native/cpp/frc2/command/PerpetualCommandTest.cpp b/wpilibNewCommands/src/test/native/cpp/frc2/command/PerpetualCommandTest.cpp index 29fd043033..6254b85a34 100644 --- a/wpilibNewCommands/src/test/native/cpp/frc2/command/PerpetualCommandTest.cpp +++ b/wpilibNewCommands/src/test/native/cpp/frc2/command/PerpetualCommandTest.cpp @@ -9,7 +9,7 @@ using namespace frc2; class PerpetualCommandTest : public CommandTestBase {}; -TEST_F(PerpetualCommandTest, PerpetualCommandScheduleTest) { +TEST_F(PerpetualCommandTest, PerpetualCommandSchedule) { CommandScheduler scheduler = GetScheduler(); bool check = false; diff --git a/wpilibNewCommands/src/test/native/cpp/frc2/command/PrintCommandTest.cpp b/wpilibNewCommands/src/test/native/cpp/frc2/command/PrintCommandTest.cpp index 501ec9e5ed..02575a30cc 100644 --- a/wpilibNewCommands/src/test/native/cpp/frc2/command/PrintCommandTest.cpp +++ b/wpilibNewCommands/src/test/native/cpp/frc2/command/PrintCommandTest.cpp @@ -10,7 +10,7 @@ using namespace frc2; class PrintCommandTest : public CommandTestBase {}; -TEST_F(PrintCommandTest, PrintCommandScheduleTest) { +TEST_F(PrintCommandTest, PrintCommandSchedule) { CommandScheduler scheduler = GetScheduler(); PrintCommand command("Test!"); diff --git a/wpilibNewCommands/src/test/native/cpp/frc2/command/ProxyScheduleCommandTest.cpp b/wpilibNewCommands/src/test/native/cpp/frc2/command/ProxyScheduleCommandTest.cpp index e55bf5c5fd..def7be9ff6 100644 --- a/wpilibNewCommands/src/test/native/cpp/frc2/command/ProxyScheduleCommandTest.cpp +++ b/wpilibNewCommands/src/test/native/cpp/frc2/command/ProxyScheduleCommandTest.cpp @@ -12,7 +12,7 @@ using namespace frc2; class ProxyScheduleCommandTest : public CommandTestBase {}; -TEST_F(ProxyScheduleCommandTest, ProxyScheduleCommandScheduleTest) { +TEST_F(ProxyScheduleCommandTest, ProxyScheduleCommandSchedule) { CommandScheduler& scheduler = CommandScheduler::GetInstance(); bool scheduled = false; @@ -27,7 +27,7 @@ TEST_F(ProxyScheduleCommandTest, ProxyScheduleCommandScheduleTest) { EXPECT_TRUE(scheduled); } -TEST_F(ProxyScheduleCommandTest, ProxyScheduleCommandEndTest) { +TEST_F(ProxyScheduleCommandTest, ProxyScheduleCommandEnd) { CommandScheduler& scheduler = CommandScheduler::GetInstance(); bool finished = false; diff --git a/wpilibNewCommands/src/test/native/cpp/frc2/command/RobotDisabledCommandTest.cpp b/wpilibNewCommands/src/test/native/cpp/frc2/command/RobotDisabledCommandTest.cpp index 9def8942d1..1595a1e6d3 100644 --- a/wpilibNewCommands/src/test/native/cpp/frc2/command/RobotDisabledCommandTest.cpp +++ b/wpilibNewCommands/src/test/native/cpp/frc2/command/RobotDisabledCommandTest.cpp @@ -13,7 +13,7 @@ using namespace frc2; class RobotDisabledCommandTest : public CommandTestBase {}; -TEST_F(RobotDisabledCommandTest, RobotDisabledCommandCancelTest) { +TEST_F(RobotDisabledCommandTest, RobotDisabledCommandCancel) { CommandScheduler scheduler = GetScheduler(); MockCommand command({}, false, false); @@ -34,7 +34,7 @@ TEST_F(RobotDisabledCommandTest, RobotDisabledCommandCancelTest) { EXPECT_FALSE(scheduler.IsScheduled(&command)); } -TEST_F(RobotDisabledCommandTest, RunWhenDisabledTest) { +TEST_F(RobotDisabledCommandTest, RunWhenDisabled) { CommandScheduler scheduler = GetScheduler(); MockCommand command1; @@ -52,7 +52,7 @@ TEST_F(RobotDisabledCommandTest, RunWhenDisabledTest) { EXPECT_TRUE(scheduler.IsScheduled(&command2)); } -TEST_F(RobotDisabledCommandTest, SequentialGroupRunWhenDisabledTest) { +TEST_F(RobotDisabledCommandTest, SequentialGroupRunWhenDisabled) { CommandScheduler scheduler = GetScheduler(); SequentialCommandGroup runWhenDisabled{MockCommand(), MockCommand()}; @@ -68,7 +68,7 @@ TEST_F(RobotDisabledCommandTest, SequentialGroupRunWhenDisabledTest) { EXPECT_FALSE(scheduler.IsScheduled(&dontRunWhenDisabled)); } -TEST_F(RobotDisabledCommandTest, ParallelGroupRunWhenDisabledTest) { +TEST_F(RobotDisabledCommandTest, ParallelGroupRunWhenDisabled) { CommandScheduler scheduler = GetScheduler(); ParallelCommandGroup runWhenDisabled{MockCommand(), MockCommand()}; @@ -84,7 +84,7 @@ TEST_F(RobotDisabledCommandTest, ParallelGroupRunWhenDisabledTest) { EXPECT_FALSE(scheduler.IsScheduled(&dontRunWhenDisabled)); } -TEST_F(RobotDisabledCommandTest, ParallelRaceRunWhenDisabledTest) { +TEST_F(RobotDisabledCommandTest, ParallelRaceRunWhenDisabled) { CommandScheduler scheduler = GetScheduler(); ParallelRaceGroup runWhenDisabled{MockCommand(), MockCommand()}; @@ -100,7 +100,7 @@ TEST_F(RobotDisabledCommandTest, ParallelRaceRunWhenDisabledTest) { EXPECT_FALSE(scheduler.IsScheduled(&dontRunWhenDisabled)); } -TEST_F(RobotDisabledCommandTest, ParallelDeadlineRunWhenDisabledTest) { +TEST_F(RobotDisabledCommandTest, ParallelDeadlineRunWhenDisabled) { CommandScheduler scheduler = GetScheduler(); ParallelDeadlineGroup runWhenDisabled{MockCommand(), MockCommand()}; @@ -116,7 +116,7 @@ TEST_F(RobotDisabledCommandTest, ParallelDeadlineRunWhenDisabledTest) { EXPECT_FALSE(scheduler.IsScheduled(&dontRunWhenDisabled)); } -TEST_F(RobotDisabledCommandTest, ConditionalCommandRunWhenDisabledTest) { +TEST_F(RobotDisabledCommandTest, ConditionalCommandRunWhenDisabled) { CommandScheduler scheduler = GetScheduler(); ConditionalCommand runWhenDisabled{MockCommand(), MockCommand(), @@ -133,7 +133,7 @@ TEST_F(RobotDisabledCommandTest, ConditionalCommandRunWhenDisabledTest) { EXPECT_FALSE(scheduler.IsScheduled(&dontRunWhenDisabled)); } -TEST_F(RobotDisabledCommandTest, SelectCommandRunWhenDisabledTest) { +TEST_F(RobotDisabledCommandTest, SelectCommandRunWhenDisabled) { CommandScheduler scheduler = GetScheduler(); SelectCommand runWhenDisabled{[] { return 1; }, diff --git a/wpilibNewCommands/src/test/native/cpp/frc2/command/RunCommandTest.cpp b/wpilibNewCommands/src/test/native/cpp/frc2/command/RunCommandTest.cpp index 8b80419b17..11d4adac76 100644 --- a/wpilibNewCommands/src/test/native/cpp/frc2/command/RunCommandTest.cpp +++ b/wpilibNewCommands/src/test/native/cpp/frc2/command/RunCommandTest.cpp @@ -8,7 +8,7 @@ using namespace frc2; class RunCommandTest : public CommandTestBase {}; -TEST_F(RunCommandTest, RunCommandScheduleTest) { +TEST_F(RunCommandTest, RunCommandSchedule) { CommandScheduler scheduler = GetScheduler(); int counter = 0; diff --git a/wpilibNewCommands/src/test/native/cpp/frc2/command/ScheduleCommandTest.cpp b/wpilibNewCommands/src/test/native/cpp/frc2/command/ScheduleCommandTest.cpp index f79dcd4658..4003b4ab49 100644 --- a/wpilibNewCommands/src/test/native/cpp/frc2/command/ScheduleCommandTest.cpp +++ b/wpilibNewCommands/src/test/native/cpp/frc2/command/ScheduleCommandTest.cpp @@ -12,7 +12,7 @@ using namespace frc2; class ScheduleCommandTest : public CommandTestBase {}; -TEST_F(ScheduleCommandTest, ScheduleCommandScheduleTest) { +TEST_F(ScheduleCommandTest, ScheduleCommandSchedule) { CommandScheduler& scheduler = CommandScheduler::GetInstance(); bool scheduled = false; diff --git a/wpilibNewCommands/src/test/native/cpp/frc2/command/SchedulerTest.cpp b/wpilibNewCommands/src/test/native/cpp/frc2/command/SchedulerTest.cpp index c6d1df765a..c0f1e5acb4 100644 --- a/wpilibNewCommands/src/test/native/cpp/frc2/command/SchedulerTest.cpp +++ b/wpilibNewCommands/src/test/native/cpp/frc2/command/SchedulerTest.cpp @@ -26,7 +26,7 @@ TEST_F(SchedulerTest, SchedulerLambdaTestNoInterrupt) { EXPECT_EQ(counter, 3); } -TEST_F(SchedulerTest, SchedulerLambdaInterruptTest) { +TEST_F(SchedulerTest, SchedulerLambdaInterrupt) { CommandScheduler scheduler = GetScheduler(); RunCommand command([] {}, {}); @@ -42,7 +42,7 @@ TEST_F(SchedulerTest, SchedulerLambdaInterruptTest) { EXPECT_EQ(counter, 1); } -TEST_F(SchedulerTest, UnregisterSubsystemTest) { +TEST_F(SchedulerTest, UnregisterSubsystem) { CommandScheduler scheduler = GetScheduler(); TestSubsystem system; @@ -52,7 +52,7 @@ TEST_F(SchedulerTest, UnregisterSubsystemTest) { EXPECT_NO_FATAL_FAILURE(scheduler.UnregisterSubsystem(&system)); } -TEST_F(SchedulerTest, SchedulerCancelAllTest) { +TEST_F(SchedulerTest, SchedulerCancelAll) { CommandScheduler scheduler = GetScheduler(); RunCommand command([] {}, {}); diff --git a/wpilibNewCommands/src/test/native/cpp/frc2/command/SelectCommandTest.cpp b/wpilibNewCommands/src/test/native/cpp/frc2/command/SelectCommandTest.cpp index 4eef2b0d86..409e2a6aba 100644 --- a/wpilibNewCommands/src/test/native/cpp/frc2/command/SelectCommandTest.cpp +++ b/wpilibNewCommands/src/test/native/cpp/frc2/command/SelectCommandTest.cpp @@ -10,7 +10,7 @@ using namespace frc2; class SelectCommandTest : public CommandTestBase {}; -TEST_F(SelectCommandTest, SelectCommandTest) { +TEST_F(SelectCommandTest, SelectCommand) { CommandScheduler scheduler = GetScheduler(); std::unique_ptr mock = std::make_unique(); @@ -36,7 +36,7 @@ TEST_F(SelectCommandTest, SelectCommandTest) { EXPECT_FALSE(scheduler.IsScheduled(&select)); } -TEST_F(SelectCommandTest, SelectCommandRequirementTest) { +TEST_F(SelectCommandTest, SelectCommandRequirement) { CommandScheduler scheduler = GetScheduler(); TestSubsystem requirement1; diff --git a/wpilibNewCommands/src/test/native/cpp/frc2/command/SequentialCommandGroupTest.cpp b/wpilibNewCommands/src/test/native/cpp/frc2/command/SequentialCommandGroupTest.cpp index ec729d0969..2d88c0a752 100644 --- a/wpilibNewCommands/src/test/native/cpp/frc2/command/SequentialCommandGroupTest.cpp +++ b/wpilibNewCommands/src/test/native/cpp/frc2/command/SequentialCommandGroupTest.cpp @@ -10,7 +10,7 @@ using namespace frc2; class SequentialCommandGroupTest : public CommandTestBase {}; -TEST_F(SequentialCommandGroupTest, SequentialGroupScheduleTest) { +TEST_F(SequentialCommandGroupTest, SequentialGroupSchedule) { CommandScheduler scheduler = GetScheduler(); std::unique_ptr command1Holder = std::make_unique(); @@ -49,7 +49,7 @@ TEST_F(SequentialCommandGroupTest, SequentialGroupScheduleTest) { EXPECT_FALSE(scheduler.IsScheduled(&group)); } -TEST_F(SequentialCommandGroupTest, SequentialGroupInterruptTest) { +TEST_F(SequentialCommandGroupTest, SequentialGroupInterrupt) { CommandScheduler scheduler = GetScheduler(); std::unique_ptr command1Holder = std::make_unique(); @@ -88,7 +88,7 @@ TEST_F(SequentialCommandGroupTest, SequentialGroupInterruptTest) { EXPECT_FALSE(scheduler.IsScheduled(&group)); } -TEST_F(SequentialCommandGroupTest, SequentialGroupNotScheduledCancelTest) { +TEST_F(SequentialCommandGroupTest, SequentialGroupNotScheduledCancel) { CommandScheduler scheduler = GetScheduler(); SequentialCommandGroup group{InstantCommand(), InstantCommand()}; @@ -96,7 +96,7 @@ TEST_F(SequentialCommandGroupTest, SequentialGroupNotScheduledCancelTest) { EXPECT_NO_FATAL_FAILURE(scheduler.Cancel(&group)); } -TEST_F(SequentialCommandGroupTest, SequentialGroupCopyTest) { +TEST_F(SequentialCommandGroupTest, SequentialGroupCopy) { CommandScheduler scheduler = GetScheduler(); bool finished = false; @@ -112,7 +112,7 @@ TEST_F(SequentialCommandGroupTest, SequentialGroupCopyTest) { EXPECT_FALSE(scheduler.IsScheduled(&group)); } -TEST_F(SequentialCommandGroupTest, SequentialGroupRequirementTest) { +TEST_F(SequentialCommandGroupTest, SequentialGroupRequirement) { CommandScheduler scheduler = GetScheduler(); TestSubsystem requirement1; diff --git a/wpilibNewCommands/src/test/native/cpp/frc2/command/StartEndCommandTest.cpp b/wpilibNewCommands/src/test/native/cpp/frc2/command/StartEndCommandTest.cpp index 0d3ca73c38..53a2df2a2c 100644 --- a/wpilibNewCommands/src/test/native/cpp/frc2/command/StartEndCommandTest.cpp +++ b/wpilibNewCommands/src/test/native/cpp/frc2/command/StartEndCommandTest.cpp @@ -8,7 +8,7 @@ using namespace frc2; class StartEndCommandTest : public CommandTestBase {}; -TEST_F(StartEndCommandTest, StartEndCommandScheduleTest) { +TEST_F(StartEndCommandTest, StartEndCommandSchedule) { CommandScheduler scheduler = GetScheduler(); int counter = 0; diff --git a/wpilibNewCommands/src/test/native/cpp/frc2/command/WaitCommandTest.cpp b/wpilibNewCommands/src/test/native/cpp/frc2/command/WaitCommandTest.cpp index 3a49ff24e3..30eea6b433 100644 --- a/wpilibNewCommands/src/test/native/cpp/frc2/command/WaitCommandTest.cpp +++ b/wpilibNewCommands/src/test/native/cpp/frc2/command/WaitCommandTest.cpp @@ -11,7 +11,7 @@ using namespace frc2; class WaitCommandTest : public CommandTestBase {}; -TEST_F(WaitCommandTest, WaitCommandScheduleTest) { +TEST_F(WaitCommandTest, WaitCommandSchedule) { frc::sim::PauseTiming(); CommandScheduler scheduler = GetScheduler(); diff --git a/wpilibNewCommands/src/test/native/cpp/frc2/command/WaitUntilCommandTest.cpp b/wpilibNewCommands/src/test/native/cpp/frc2/command/WaitUntilCommandTest.cpp index dabf5d1155..01acc390e1 100644 --- a/wpilibNewCommands/src/test/native/cpp/frc2/command/WaitUntilCommandTest.cpp +++ b/wpilibNewCommands/src/test/native/cpp/frc2/command/WaitUntilCommandTest.cpp @@ -8,7 +8,7 @@ using namespace frc2; class WaitUntilCommandTest : public CommandTestBase {}; -TEST_F(WaitUntilCommandTest, WaitUntilCommandScheduleTest) { +TEST_F(WaitUntilCommandTest, WaitUntilCommandSchedule) { CommandScheduler scheduler = GetScheduler(); bool finished = false; diff --git a/wpilibNewCommands/src/test/native/cpp/frc2/command/button/NetworkButtonTest.cpp b/wpilibNewCommands/src/test/native/cpp/frc2/command/button/NetworkButtonTest.cpp index 5c985472c5..7de10843b9 100644 --- a/wpilibNewCommands/src/test/native/cpp/frc2/command/button/NetworkButtonTest.cpp +++ b/wpilibNewCommands/src/test/native/cpp/frc2/command/button/NetworkButtonTest.cpp @@ -22,7 +22,7 @@ class NetworkButtonTest : public CommandTestBase { } }; -TEST_F(NetworkButtonTest, SetNetworkButtonTest) { +TEST_F(NetworkButtonTest, SetNetworkButton) { auto& scheduler = CommandScheduler::GetInstance(); auto entry = nt::NetworkTableInstance::GetDefault() .GetTable("TestTable") diff --git a/wpilibc/src/test/native/cpp/simulation/ADXL345SimTest.cpp b/wpilibc/src/test/native/cpp/simulation/ADXL345SimTest.cpp index c124d69594..2bec0ed107 100644 --- a/wpilibc/src/test/native/cpp/simulation/ADXL345SimTest.cpp +++ b/wpilibc/src/test/native/cpp/simulation/ADXL345SimTest.cpp @@ -12,7 +12,7 @@ namespace frc::sim { -TEST(ADXL345SimTests, SetSpiAttributes) { +TEST(ADXL345SimTest, SetSpiAttributes) { HAL_Initialize(500, 0); ADXL345_SPI accel(SPI::kMXP, Accelerometer::kRange_2G); @@ -36,7 +36,7 @@ TEST(ADXL345SimTests, SetSpiAttributes) { EXPECT_EQ(2.29, allAccel.ZAxis); } -TEST(ADXL345SimTests, SetI2CAttribute) { +TEST(ADXL345SimTest, SetI2CAttribute) { HAL_Initialize(500, 0); ADXL345_I2C accel(I2C::kMXP); diff --git a/wpilibc/src/test/native/cpp/simulation/ADXL362SimTest.cpp b/wpilibc/src/test/native/cpp/simulation/ADXL362SimTest.cpp index a8737de23d..13f6c00e1d 100644 --- a/wpilibc/src/test/native/cpp/simulation/ADXL362SimTest.cpp +++ b/wpilibc/src/test/native/cpp/simulation/ADXL362SimTest.cpp @@ -11,7 +11,7 @@ namespace frc::sim { -TEST(ADXL362SimTests, SetAttributes) { +TEST(ADXL362SimTest, SetAttributes) { HAL_Initialize(500, 0); ADXL362 accel(SPI::kMXP, Accelerometer::kRange_2G); diff --git a/wpilibc/src/test/native/cpp/simulation/AnalogEncoderSimTest.cpp b/wpilibc/src/test/native/cpp/simulation/AnalogEncoderSimTest.cpp index 9c51f3e201..461950e0a6 100644 --- a/wpilibc/src/test/native/cpp/simulation/AnalogEncoderSimTest.cpp +++ b/wpilibc/src/test/native/cpp/simulation/AnalogEncoderSimTest.cpp @@ -14,7 +14,7 @@ #define EXPECT_NEAR_UNITS(val1, val2, eps) \ EXPECT_LE(units::math::abs(val1 - val2), eps) -TEST(AnalogEncoderSimTest, TestBasic) { +TEST(AnalogEncoderSimTest, Basic) { frc::AnalogInput ai(0); frc::AnalogEncoder encoder{ai}; frc::sim::AnalogEncoderSim encoderSim{encoder}; diff --git a/wpilibc/src/test/native/cpp/simulation/DriverStationSimTest.cpp b/wpilibc/src/test/native/cpp/simulation/DriverStationSimTest.cpp index 9a76140bee..d01ca27937 100644 --- a/wpilibc/src/test/native/cpp/simulation/DriverStationSimTest.cpp +++ b/wpilibc/src/test/native/cpp/simulation/DriverStationSimTest.cpp @@ -50,7 +50,7 @@ TEST(DriverStationTest, AutonomousMode) { EXPECT_TRUE(callback.GetLastValue()); } -TEST(DriverStationTest, TestMode) { +TEST(DriverStationTest, Mode) { HAL_Initialize(500, 0); DriverStationSim::ResetData(); diff --git a/wpilibc/src/test/native/cpp/simulation/SimDeviceSimTest.cpp b/wpilibc/src/test/native/cpp/simulation/SimDeviceSimTest.cpp index d195ee7d56..5ef267510d 100644 --- a/wpilibc/src/test/native/cpp/simulation/SimDeviceSimTest.cpp +++ b/wpilibc/src/test/native/cpp/simulation/SimDeviceSimTest.cpp @@ -11,7 +11,7 @@ using namespace frc::sim; -TEST(SimDeviceSimTests, TestBasic) { +TEST(SimDeviceSimTest, Basic) { hal::SimDevice dev{"test"}; hal::SimBoolean devBool = dev.CreateBoolean("bool", false, false); @@ -22,7 +22,7 @@ TEST(SimDeviceSimTests, TestBasic) { EXPECT_TRUE(devBool.Get()); } -TEST(SimDeviceSimTests, TestEnumerateDevices) { +TEST(SimDeviceSimTest, EnumerateDevices) { hal::SimDevice dev{"test"}; bool foundit = false; diff --git a/wpilibc/src/test/native/cpp/simulation/SimInitializationTest.cpp b/wpilibc/src/test/native/cpp/simulation/SimInitializationTest.cpp index 0d64876894..e703912aea 100644 --- a/wpilibc/src/test/native/cpp/simulation/SimInitializationTest.cpp +++ b/wpilibc/src/test/native/cpp/simulation/SimInitializationTest.cpp @@ -27,7 +27,7 @@ using namespace frc::sim; -TEST(SimInitializationTests, TestAllInitialize) { +TEST(SimInitializationTest, AllInitialize) { HAL_Initialize(500, 0); BuiltInAccelerometerSim biacsim; AnalogGyroSim agsim{0}; diff --git a/wpilibc/src/test/native/cpp/simulation/StateSpaceSimTest.cpp b/wpilibc/src/test/native/cpp/simulation/StateSpaceSimTest.cpp index 557e77b9ce..869d445e39 100644 --- a/wpilibc/src/test/native/cpp/simulation/StateSpaceSimTest.cpp +++ b/wpilibc/src/test/native/cpp/simulation/StateSpaceSimTest.cpp @@ -24,7 +24,7 @@ #include "frc/system/plant/LinearSystemId.h" #include "gtest/gtest.h" -TEST(StateSpaceSimTest, TestFlywheelSim) { +TEST(StateSpaceSimTest, FlywheelSim) { const frc::LinearSystem<1, 1, 1> plant = frc::LinearSystemId::IdentifyVelocitySystem( 0.02_V / 1_rad_per_s, 0.01_V / 1_rad_per_s_sq); diff --git a/wpilibcIntegrationTests/src/main/native/cpp/AnalogPotentiometerTest.cpp b/wpilibcIntegrationTests/src/main/native/cpp/AnalogPotentiometerTest.cpp index ec50c95c4c..107310fdbb 100644 --- a/wpilibcIntegrationTests/src/main/native/cpp/AnalogPotentiometerTest.cpp +++ b/wpilibcIntegrationTests/src/main/native/cpp/AnalogPotentiometerTest.cpp @@ -13,7 +13,7 @@ static constexpr double kScale = 270.0; static constexpr double kAngle = 180.0; -TEST(AnalogPotentiometerTest, TestInitialSettings) { +TEST(AnalogPotentiometerTest, InitialSettings) { frc::AnalogOutput m_fakePot{TestBench::kAnalogOutputChannel}; frc::AnalogPotentiometer m_pot{TestBench::kFakeAnalogOutputChannel, kScale}; @@ -23,7 +23,7 @@ TEST(AnalogPotentiometerTest, TestInitialSettings) { << "The potentiometer did not initialize to 0."; } -TEST(AnalogPotentiometerTest, TestRangeValues) { +TEST(AnalogPotentiometerTest, RangeValues) { frc::AnalogOutput m_fakePot{TestBench::kAnalogOutputChannel}; frc::AnalogPotentiometer m_pot{TestBench::kFakeAnalogOutputChannel, kScale}; diff --git a/wpilibcIntegrationTests/src/main/native/cpp/DigitalGlitchFilterTest.cpp b/wpilibcIntegrationTests/src/main/native/cpp/DigitalGlitchFilterTest.cpp index 5249cc92c0..d7c1a236f8 100644 --- a/wpilibcIntegrationTests/src/main/native/cpp/DigitalGlitchFilterTest.cpp +++ b/wpilibcIntegrationTests/src/main/native/cpp/DigitalGlitchFilterTest.cpp @@ -16,7 +16,7 @@ * implementation works as intended. We configure the FPGA and then query it to * make sure that the acutal configuration matches. */ -TEST(DigitalGlitchFilterTest, BasicTest) { +TEST(DigitalGlitchFilterTest, Basic) { frc::DigitalInput input1{1}; frc::DigitalInput input2{2}; frc::DigitalInput input3{3}; diff --git a/wpilibcIntegrationTests/src/main/native/cpp/FakeEncoderTest.cpp b/wpilibcIntegrationTests/src/main/native/cpp/FakeEncoderTest.cpp index 7665b405f1..3442b48025 100644 --- a/wpilibcIntegrationTests/src/main/native/cpp/FakeEncoderTest.cpp +++ b/wpilibcIntegrationTests/src/main/native/cpp/FakeEncoderTest.cpp @@ -64,14 +64,14 @@ class FakeEncoderTest : public testing::Test { /** * Test the encoder by reseting it to 0 and reading the value. */ -TEST_F(FakeEncoderTest, TestDefaultState) { +TEST_F(FakeEncoderTest, DefaultState) { EXPECT_DOUBLE_EQ(0.0, m_encoder.Get()) << "The encoder did not start at 0."; } /** * Test the encoder by setting the digital outputs and reading the value. */ -TEST_F(FakeEncoderTest, TestCountUp) { +TEST_F(FakeEncoderTest, CountUp) { m_encoder.Reset(); Simulate100QuadratureTicks(); @@ -81,7 +81,7 @@ TEST_F(FakeEncoderTest, TestCountUp) { /** * Test that the encoder can stay reset while the index source is high */ -TEST_F(FakeEncoderTest, TestResetWhileHigh) { +TEST_F(FakeEncoderTest, ResetWhileHigh) { m_encoder.SetIndexSource(*m_indexAnalogTriggerOutput, frc::Encoder::IndexingType::kResetWhileHigh); @@ -97,7 +97,7 @@ TEST_F(FakeEncoderTest, TestResetWhileHigh) { /** * Test that the encoder can reset when the index source goes from low to high */ -TEST_F(FakeEncoderTest, TestResetOnRisingEdge) { +TEST_F(FakeEncoderTest, ResetOnRisingEdge) { m_encoder.SetIndexSource(*m_indexAnalogTriggerOutput, frc::Encoder::IndexingType::kResetOnRisingEdge); @@ -113,7 +113,7 @@ TEST_F(FakeEncoderTest, TestResetOnRisingEdge) { /** * Test that the encoder can stay reset while the index source is low */ -TEST_F(FakeEncoderTest, TestResetWhileLow) { +TEST_F(FakeEncoderTest, ResetWhileLow) { m_encoder.SetIndexSource(*m_indexAnalogTriggerOutput, frc::Encoder::IndexingType::kResetWhileLow); @@ -129,7 +129,7 @@ TEST_F(FakeEncoderTest, TestResetWhileLow) { /** * Test that the encoder can reset when the index source goes from high to low */ -TEST_F(FakeEncoderTest, TestResetOnFallingEdge) { +TEST_F(FakeEncoderTest, ResetOnFallingEdge) { m_encoder.SetIndexSource(*m_indexAnalogTriggerOutput, frc::Encoder::IndexingType::kResetOnFallingEdge); diff --git a/wpilibcIntegrationTests/src/main/native/cpp/NotifierTest.cpp b/wpilibcIntegrationTests/src/main/native/cpp/NotifierTest.cpp index e613007019..eaaaf7e0fa 100644 --- a/wpilibcIntegrationTests/src/main/native/cpp/NotifierTest.cpp +++ b/wpilibcIntegrationTests/src/main/native/cpp/NotifierTest.cpp @@ -9,7 +9,7 @@ #include "frc/Timer.h" #include "gtest/gtest.h" -TEST(NotifierTest, TestStartPeriodicAndStop) { +TEST(NotifierTest, StartPeriodicAndStop) { uint32_t counter = 0; frc::Notifier notifier{[&] { ++counter; }}; @@ -29,7 +29,7 @@ TEST(NotifierTest, TestStartPeriodicAndStop) { fmt::print("Received {} notifications in 3 seconds\n", counter - 10); } -TEST(NotifierTest, TestStartSingle) { +TEST(NotifierTest, StartSingle) { uint32_t counter = 0; frc::Notifier notifier{[&] { ++counter; }}; diff --git a/wpimath/src/test/native/cpp/EigenTest.cpp b/wpimath/src/test/native/cpp/EigenTest.cpp index 7b433552b7..c1786c3a96 100644 --- a/wpimath/src/test/native/cpp/EigenTest.cpp +++ b/wpimath/src/test/native/cpp/EigenTest.cpp @@ -6,7 +6,7 @@ #include "Eigen/LU" #include "gtest/gtest.h" -TEST(EigenTest, MultiplicationTest) { +TEST(EigenTest, Multiplication) { Eigen::Matrix m1{{2, 1}, {0, 1}}; Eigen::Matrix m2{{3, 0}, {0, 2.5}}; @@ -28,7 +28,7 @@ TEST(EigenTest, MultiplicationTest) { EXPECT_TRUE(expectedResult2.isApprox(result2)); } -TEST(EigenTest, TransposeTest) { +TEST(EigenTest, Transpose) { Eigen::Vector vec{1, 2, 3}; const auto transpose = vec.transpose(); @@ -38,7 +38,7 @@ TEST(EigenTest, TransposeTest) { EXPECT_TRUE(expectedTranspose.isApprox(transpose)); } -TEST(EigenTest, InverseTest) { +TEST(EigenTest, Inverse) { Eigen::Matrix mat{ {1.0, 3.0, 2.0}, {5.0, 2.0, 1.5}, {0.0, 1.3, 2.5}}; diff --git a/wpimath/src/test/native/cpp/controller/PIDInputOutputTest.cpp b/wpimath/src/test/native/cpp/controller/PIDInputOutputTest.cpp index cc4507f34b..27017316d2 100644 --- a/wpimath/src/test/native/cpp/controller/PIDInputOutputTest.cpp +++ b/wpimath/src/test/native/cpp/controller/PIDInputOutputTest.cpp @@ -14,7 +14,7 @@ class PIDInputOutputTest : public testing::Test { void TearDown() override { delete controller; } }; -TEST_F(PIDInputOutputTest, ContinuousInputTest) { +TEST_F(PIDInputOutputTest, ContinuousInput) { controller->SetP(1); controller->EnableContinuousInput(-180, 180); EXPECT_DOUBLE_EQ(controller->Calculate(-179, 179), -2); @@ -23,13 +23,13 @@ TEST_F(PIDInputOutputTest, ContinuousInputTest) { EXPECT_DOUBLE_EQ(controller->Calculate(1, 359), -2); } -TEST_F(PIDInputOutputTest, ProportionalGainOutputTest) { +TEST_F(PIDInputOutputTest, ProportionalGainOutput) { controller->SetP(4); EXPECT_DOUBLE_EQ(-0.1, controller->Calculate(0.025, 0)); } -TEST_F(PIDInputOutputTest, IntegralGainOutputTest) { +TEST_F(PIDInputOutputTest, IntegralGainOutput) { controller->SetI(4); double out = 0; @@ -41,7 +41,7 @@ TEST_F(PIDInputOutputTest, IntegralGainOutputTest) { EXPECT_DOUBLE_EQ(-0.5 * controller->GetPeriod().to(), out); } -TEST_F(PIDInputOutputTest, DerivativeGainOutputTest) { +TEST_F(PIDInputOutputTest, DerivativeGainOutput) { controller->SetD(4); controller->Calculate(0, 0); diff --git a/wpimath/src/test/native/cpp/controller/ProfiledPIDInputOutputTest.cpp b/wpimath/src/test/native/cpp/controller/ProfiledPIDInputOutputTest.cpp index 71bb5a83cb..00f2b1c6f8 100644 --- a/wpimath/src/test/native/cpp/controller/ProfiledPIDInputOutputTest.cpp +++ b/wpimath/src/test/native/cpp/controller/ProfiledPIDInputOutputTest.cpp @@ -22,7 +22,7 @@ class ProfiledPIDInputOutputTest : public testing::Test { void TearDown() override { delete controller; } }; -TEST_F(ProfiledPIDInputOutputTest, ContinuousInputTest1) { +TEST_F(ProfiledPIDInputOutputTest, ContinuousInput1) { controller->SetP(1); controller->EnableContinuousInput(-180_deg, 180_deg); @@ -38,7 +38,7 @@ TEST_F(ProfiledPIDInputOutputTest, ContinuousInputTest1) { 180_deg); } -TEST_F(ProfiledPIDInputOutputTest, ContinuousInputTest2) { +TEST_F(ProfiledPIDInputOutputTest, ContinuousInput2) { controller->SetP(1); controller->EnableContinuousInput(-units::radian_t{wpi::numbers::pi}, units::radian_t{wpi::numbers::pi}); @@ -55,7 +55,7 @@ TEST_F(ProfiledPIDInputOutputTest, ContinuousInputTest2) { units::radian_t{wpi::numbers::pi}); } -TEST_F(ProfiledPIDInputOutputTest, ContinuousInputTest3) { +TEST_F(ProfiledPIDInputOutputTest, ContinuousInput3) { controller->SetP(1); controller->EnableContinuousInput(-units::radian_t{wpi::numbers::pi}, units::radian_t{wpi::numbers::pi}); @@ -72,7 +72,7 @@ TEST_F(ProfiledPIDInputOutputTest, ContinuousInputTest3) { units::radian_t{wpi::numbers::pi}); } -TEST_F(ProfiledPIDInputOutputTest, ContinuousInputTest4) { +TEST_F(ProfiledPIDInputOutputTest, ContinuousInput4) { controller->SetP(1); controller->EnableContinuousInput(0_rad, units::radian_t{2.0 * wpi::numbers::pi}); @@ -89,13 +89,13 @@ TEST_F(ProfiledPIDInputOutputTest, ContinuousInputTest4) { units::radian_t{wpi::numbers::pi}); } -TEST_F(ProfiledPIDInputOutputTest, ProportionalGainOutputTest) { +TEST_F(ProfiledPIDInputOutputTest, ProportionalGainOutput) { controller->SetP(4); EXPECT_DOUBLE_EQ(-0.1, controller->Calculate(0.025_deg, 0_deg)); } -TEST_F(ProfiledPIDInputOutputTest, IntegralGainOutputTest) { +TEST_F(ProfiledPIDInputOutputTest, IntegralGainOutput) { controller->SetI(4); double out = 0; @@ -107,7 +107,7 @@ TEST_F(ProfiledPIDInputOutputTest, IntegralGainOutputTest) { EXPECT_DOUBLE_EQ(-0.5 * controller->GetPeriod().to(), out); } -TEST_F(ProfiledPIDInputOutputTest, DerivativeGainOutputTest) { +TEST_F(ProfiledPIDInputOutputTest, DerivativeGainOutput) { controller->SetD(4); controller->Calculate(0_deg, 0_deg); diff --git a/wpimath/src/test/native/cpp/estimator/AngleStatisticsTest.cpp b/wpimath/src/test/native/cpp/estimator/AngleStatisticsTest.cpp index 5b25a74939..ee1da7f03c 100644 --- a/wpimath/src/test/native/cpp/estimator/AngleStatisticsTest.cpp +++ b/wpimath/src/test/native/cpp/estimator/AngleStatisticsTest.cpp @@ -9,7 +9,7 @@ #include "Eigen/Core" #include "frc/estimator/AngleStatistics.h" -TEST(AngleStatisticsTest, TestMean) { +TEST(AngleStatisticsTest, Mean) { Eigen::Matrix sigmas{ {1, 1.2, 0}, {359 * wpi::numbers::pi / 180, 3 * wpi::numbers::pi / 180, 0}, @@ -22,7 +22,7 @@ TEST(AngleStatisticsTest, TestMean) { .isApprox(frc::AngleMean<3, 1>(sigmas, weights, 1), 1e-3)); } -TEST(AngleStatisticsTest, TestResidual) { +TEST(AngleStatisticsTest, Residual) { Eigen::Vector3d a{1, 1 * wpi::numbers::pi / 180, 2}; Eigen::Vector3d b{1, 359 * wpi::numbers::pi / 180, 1}; @@ -30,7 +30,7 @@ TEST(AngleStatisticsTest, TestResidual) { Eigen::Vector3d{0, 2 * wpi::numbers::pi / 180, 1})); } -TEST(AngleStatisticsTest, TestAdd) { +TEST(AngleStatisticsTest, Add) { Eigen::Vector3d a{1, 1 * wpi::numbers::pi / 180, 2}; Eigen::Vector3d b{1, 359 * wpi::numbers::pi / 180, 1}; diff --git a/wpimath/src/test/native/cpp/estimator/DifferentialDrivePoseEstimatorTest.cpp b/wpimath/src/test/native/cpp/estimator/DifferentialDrivePoseEstimatorTest.cpp index d45c5d5acc..dcc948ac99 100644 --- a/wpimath/src/test/native/cpp/estimator/DifferentialDrivePoseEstimatorTest.cpp +++ b/wpimath/src/test/native/cpp/estimator/DifferentialDrivePoseEstimatorTest.cpp @@ -17,7 +17,7 @@ #include "units/length.h" #include "units/time.h" -TEST(DifferentialDrivePoseEstimatorTest, TestAccuracy) { +TEST(DifferentialDrivePoseEstimatorTest, Accuracy) { frc::DifferentialDrivePoseEstimator estimator{frc::Rotation2d(), frc::Pose2d(), {0.02, 0.02, 0.01, 0.02, 0.02}, diff --git a/wpimath/src/test/native/cpp/estimator/MecanumDrivePoseEstimatorTest.cpp b/wpimath/src/test/native/cpp/estimator/MecanumDrivePoseEstimatorTest.cpp index a1e0661622..43f3595f6c 100644 --- a/wpimath/src/test/native/cpp/estimator/MecanumDrivePoseEstimatorTest.cpp +++ b/wpimath/src/test/native/cpp/estimator/MecanumDrivePoseEstimatorTest.cpp @@ -12,7 +12,7 @@ #include "frc/trajectory/TrajectoryGenerator.h" #include "gtest/gtest.h" -TEST(MecanumDrivePoseEstimatorTest, TestAccuracy) { +TEST(MecanumDrivePoseEstimatorTest, Accuracy) { frc::MecanumDriveKinematics kinematics{ frc::Translation2d{1_m, 1_m}, frc::Translation2d{1_m, -1_m}, frc::Translation2d{-1_m, -1_m}, frc::Translation2d{-1_m, 1_m}}; diff --git a/wpimath/src/test/native/cpp/estimator/MerweScaledSigmaPointsTest.cpp b/wpimath/src/test/native/cpp/estimator/MerweScaledSigmaPointsTest.cpp index 244270fb35..c012435949 100644 --- a/wpimath/src/test/native/cpp/estimator/MerweScaledSigmaPointsTest.cpp +++ b/wpimath/src/test/native/cpp/estimator/MerweScaledSigmaPointsTest.cpp @@ -8,7 +8,7 @@ namespace drake::math { namespace { -TEST(MerweScaledSigmaPointsTest, TestZeroMean) { +TEST(MerweScaledSigmaPointsTest, ZeroMean) { frc::MerweScaledSigmaPoints<2> sigmaPoints; auto points = sigmaPoints.SigmaPoints( Eigen::Vector{0.0, 0.0}, @@ -21,7 +21,7 @@ TEST(MerweScaledSigmaPointsTest, TestZeroMean) { .norm() < 1e-3); } -TEST(MerweScaledSigmaPointsTest, TestNonzeroMean) { +TEST(MerweScaledSigmaPointsTest, NonzeroMean) { frc::MerweScaledSigmaPoints<2> sigmaPoints; auto points = sigmaPoints.SigmaPoints( Eigen::Vector{1.0, 2.0}, diff --git a/wpimath/src/test/native/cpp/estimator/SwerveDrivePoseEstimatorTest.cpp b/wpimath/src/test/native/cpp/estimator/SwerveDrivePoseEstimatorTest.cpp index a2eabf8455..efe72a045e 100644 --- a/wpimath/src/test/native/cpp/estimator/SwerveDrivePoseEstimatorTest.cpp +++ b/wpimath/src/test/native/cpp/estimator/SwerveDrivePoseEstimatorTest.cpp @@ -12,7 +12,7 @@ #include "frc/trajectory/TrajectoryGenerator.h" #include "gtest/gtest.h" -TEST(SwerveDrivePoseEstimatorTest, TestAccuracy) { +TEST(SwerveDrivePoseEstimatorTest, Accuracy) { frc::SwerveDriveKinematics<4> kinematics{ frc::Translation2d{1_m, 1_m}, frc::Translation2d{1_m, -1_m}, frc::Translation2d{-1_m, -1_m}, frc::Translation2d{-1_m, 1_m}}; diff --git a/wpimath/src/test/native/cpp/filter/SlewRateLimiterTest.cpp b/wpimath/src/test/native/cpp/filter/SlewRateLimiterTest.cpp index 38259d60fc..d2c0bae5e7 100644 --- a/wpimath/src/test/native/cpp/filter/SlewRateLimiterTest.cpp +++ b/wpimath/src/test/native/cpp/filter/SlewRateLimiterTest.cpp @@ -12,7 +12,7 @@ static units::second_t now = 0_s; -TEST(SlewRateLimiterTest, SlewRateLimitTest) { +TEST(SlewRateLimiterTest, SlewRateLimit) { WPI_SetNowImpl([] { return units::microsecond_t{now}.to(); }); frc::SlewRateLimiter limiter(1_mps); @@ -22,7 +22,7 @@ TEST(SlewRateLimiterTest, SlewRateLimitTest) { EXPECT_LT(limiter.Calculate(2_m), 2_m); } -TEST(SlewRateLimiterTest, SlewRateNoLimitTest) { +TEST(SlewRateLimiterTest, SlewRateNoLimit) { WPI_SetNowImpl([] { return units::microsecond_t{now}.to(); }); frc::SlewRateLimiter limiter(1_mps); diff --git a/wpimath/src/test/native/cpp/kinematics/MecanumDriveKinematicsTest.cpp b/wpimath/src/test/native/cpp/kinematics/MecanumDriveKinematicsTest.cpp index 9834aa0eab..abf73a6d81 100644 --- a/wpimath/src/test/native/cpp/kinematics/MecanumDriveKinematicsTest.cpp +++ b/wpimath/src/test/native/cpp/kinematics/MecanumDriveKinematicsTest.cpp @@ -143,7 +143,7 @@ TEST_F(MecanumDriveKinematicsTest, EXPECT_NEAR(0.707, chassisSpeeds.omega.to(), 0.1); } -TEST_F(MecanumDriveKinematicsTest, NormalizeTest) { +TEST_F(MecanumDriveKinematicsTest, Normalize) { MecanumDriveWheelSpeeds wheelSpeeds{5_mps, 6_mps, 4_mps, 7_mps}; wheelSpeeds.Normalize(5.5_mps); diff --git a/wpimath/src/test/native/cpp/kinematics/MecanumDriveOdometryTest.cpp b/wpimath/src/test/native/cpp/kinematics/MecanumDriveOdometryTest.cpp index 235930c436..61536d89d3 100644 --- a/wpimath/src/test/native/cpp/kinematics/MecanumDriveOdometryTest.cpp +++ b/wpimath/src/test/native/cpp/kinematics/MecanumDriveOdometryTest.cpp @@ -43,7 +43,7 @@ TEST_F(MecanumDriveOdometryTest, TwoIterations) { EXPECT_NEAR(pose.Rotation().Radians().to(), 0.0, 0.01); } -TEST_F(MecanumDriveOdometryTest, Test90DegreeTurn) { +TEST_F(MecanumDriveOdometryTest, 90DegreeTurn) { odometry.ResetPosition(Pose2d(), 0_rad); MecanumDriveWheelSpeeds speeds{-13.328_mps, 39.986_mps, -13.329_mps, 39.986_mps}; diff --git a/wpimath/src/test/native/cpp/kinematics/SwerveDriveKinematicsTest.cpp b/wpimath/src/test/native/cpp/kinematics/SwerveDriveKinematicsTest.cpp index 6e4beca542..f63ddbb32e 100644 --- a/wpimath/src/test/native/cpp/kinematics/SwerveDriveKinematicsTest.cpp +++ b/wpimath/src/test/native/cpp/kinematics/SwerveDriveKinematicsTest.cpp @@ -162,7 +162,7 @@ TEST_F(SwerveDriveKinematicsTest, EXPECT_NEAR(chassisSpeeds.omega.to(), 1.5, kEpsilon); } -TEST_F(SwerveDriveKinematicsTest, NormalizeTest) { +TEST_F(SwerveDriveKinematicsTest, Normalize) { SwerveModuleState state1{5.0_mps, Rotation2d()}; SwerveModuleState state2{6.0_mps, Rotation2d()}; SwerveModuleState state3{4.0_mps, Rotation2d()}; diff --git a/wpiutil/src/test/native/cpp/CircularBufferTest.cpp b/wpiutil/src/test/native/cpp/CircularBufferTest.cpp index d47bf76ff2..ad2285ea23 100644 --- a/wpiutil/src/test/native/cpp/CircularBufferTest.cpp +++ b/wpiutil/src/test/native/cpp/CircularBufferTest.cpp @@ -18,7 +18,7 @@ static const std::array pushFrontOut = { static const std::array pushBackOut = { {342.657, 234.252, 716.126, 132.344, 445.697, 22.727, 421.125, 799.913}}; -TEST(CircularBufferTest, PushFrontTest) { +TEST(CircularBufferTest, PushFront) { wpi::circular_buffer queue(8); for (auto& value : values) { @@ -30,7 +30,7 @@ TEST(CircularBufferTest, PushFrontTest) { } } -TEST(CircularBufferTest, PushBackTest) { +TEST(CircularBufferTest, PushBack) { wpi::circular_buffer queue(8); for (auto& value : values) { @@ -42,7 +42,7 @@ TEST(CircularBufferTest, PushBackTest) { } } -TEST(CircularBufferTest, EmplaceFrontTest) { +TEST(CircularBufferTest, EmplaceFront) { wpi::circular_buffer queue(8); for (auto& value : values) { @@ -54,7 +54,7 @@ TEST(CircularBufferTest, EmplaceFrontTest) { } } -TEST(CircularBufferTest, EmplaceBackTest) { +TEST(CircularBufferTest, EmplaceBack) { wpi::circular_buffer queue(8); for (auto& value : values) { @@ -66,7 +66,7 @@ TEST(CircularBufferTest, EmplaceBackTest) { } } -TEST(CircularBufferTest, PushPopTest) { +TEST(CircularBufferTest, PushPop) { wpi::circular_buffer queue(3); // Insert three elements into the buffer @@ -109,7 +109,7 @@ TEST(CircularBufferTest, PushPopTest) { EXPECT_EQ(4.0, queue[0]); } -TEST(CircularBufferTest, ResetTest) { +TEST(CircularBufferTest, Reset) { wpi::circular_buffer queue(5); for (size_t i = 1; i < 6; ++i) { @@ -121,7 +121,7 @@ TEST(CircularBufferTest, ResetTest) { EXPECT_EQ(queue.size(), size_t{0}); } -TEST(CircularBufferTest, ResizeTest) { +TEST(CircularBufferTest, Resize) { wpi::circular_buffer queue(5); /* Buffer contains {1, 2, 3, _, _} @@ -227,7 +227,7 @@ TEST(CircularBufferTest, ResizeTest) { EXPECT_EQ(3.0, queue[3]); } -TEST(CircularBufferTest, IteratorTest) { +TEST(CircularBufferTest, Iterator) { wpi::circular_buffer queue(3); queue.push_back(1.0); diff --git a/wpiutil/src/test/native/cpp/StaticCircularBufferTest.cpp b/wpiutil/src/test/native/cpp/StaticCircularBufferTest.cpp index a2374f16c8..f95f9cbb7c 100644 --- a/wpiutil/src/test/native/cpp/StaticCircularBufferTest.cpp +++ b/wpiutil/src/test/native/cpp/StaticCircularBufferTest.cpp @@ -18,7 +18,7 @@ static const std::array pushFrontOut = { static const std::array pushBackOut = { {342.657, 234.252, 716.126, 132.344, 445.697, 22.727, 421.125, 799.913}}; -TEST(StaticCircularBufferTest, PushFrontTest) { +TEST(StaticCircularBufferTest, PushFront) { wpi::static_circular_buffer queue; for (auto& value : values) { @@ -30,7 +30,7 @@ TEST(StaticCircularBufferTest, PushFrontTest) { } } -TEST(StaticCircularBufferTest, PushBackTest) { +TEST(StaticCircularBufferTest, PushBack) { wpi::static_circular_buffer queue; for (auto& value : values) { @@ -42,7 +42,7 @@ TEST(StaticCircularBufferTest, PushBackTest) { } } -TEST(StaticCircularBufferTest, EmplaceFrontTest) { +TEST(StaticCircularBufferTest, EmplaceFront) { wpi::static_circular_buffer queue; for (auto& value : values) { @@ -54,7 +54,7 @@ TEST(StaticCircularBufferTest, EmplaceFrontTest) { } } -TEST(StaticCircularBufferTest, EmplaceBackTest) { +TEST(StaticCircularBufferTest, EmplaceBack) { wpi::static_circular_buffer queue; for (auto& value : values) { @@ -66,7 +66,7 @@ TEST(StaticCircularBufferTest, EmplaceBackTest) { } } -TEST(StaticCircularBufferTest, PushPopTest) { +TEST(StaticCircularBufferTest, PushPop) { wpi::static_circular_buffer queue; // Insert three elements into the buffer @@ -109,7 +109,7 @@ TEST(StaticCircularBufferTest, PushPopTest) { EXPECT_EQ(4.0, queue[0]); } -TEST(StaticCircularBufferTest, ResetTest) { +TEST(StaticCircularBufferTest, Reset) { wpi::static_circular_buffer queue; for (size_t i = 1; i < 6; ++i) { @@ -121,7 +121,7 @@ TEST(StaticCircularBufferTest, ResetTest) { EXPECT_EQ(queue.size(), size_t{0}); } -TEST(StaticCircularBufferTest, IteratorTest) { +TEST(StaticCircularBufferTest, Iterator) { wpi::static_circular_buffer queue; queue.push_back(1.0); diff --git a/wpiutil/src/test/native/cpp/priority_mutex_test.cpp b/wpiutil/src/test/native/cpp/priority_mutex_test.cpp index 297cee0eb6..832e8f3fbb 100644 --- a/wpiutil/src/test/native/cpp/priority_mutex_test.cpp +++ b/wpiutil/src/test/native/cpp/priority_mutex_test.cpp @@ -222,7 +222,7 @@ class InversionTestRunner { // TODO: Fix roborio permissions to run as root. // Priority inversion test. -TEST(MutexTest, DISABLED_PriorityInversionTest) { +TEST(MutexTest, DISABLED_PriorityInversion) { InversionTestRunner runner; std::thread runner_thread(std::ref(runner)); runner_thread.join(); @@ -230,7 +230,7 @@ TEST(MutexTest, DISABLED_PriorityInversionTest) { } // Verify that the non-priority inversion mutex doesn't pass the test. -TEST(MutexTest, DISABLED_StdMutexPriorityInversionTest) { +TEST(MutexTest, DISABLED_StdMutexPriorityInversion) { InversionTestRunner runner; std::thread runner_thread(std::ref(runner)); runner_thread.join(); @@ -247,7 +247,7 @@ TEST(MutexTest, TryLock) { } // Priority inversion test. -TEST(MutexTest, DISABLED_ReentrantPriorityInversionTest) { +TEST(MutexTest, DISABLED_ReentrantPriorityInversion) { InversionTestRunner runner; std::thread runner_thread(std::ref(runner)); runner_thread.join();