From 3583bc5b78facf6c83e7d9cc8c7a9350c046da51 Mon Sep 17 00:00:00 2001 From: Andrey Gusakov Date: Wed, 12 Feb 2025 14:59:59 +0300 Subject: [PATCH] unit_tests: shift torque reduction: style --- .../test_shift_torque_reduction_switch.cpp | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/unit_tests/tests/shift_torque_reduction/test_shift_torque_reduction_switch.cpp b/unit_tests/tests/shift_torque_reduction/test_shift_torque_reduction_switch.cpp index ddb6d69558..76fdc145e5 100644 --- a/unit_tests/tests/shift_torque_reduction/test_shift_torque_reduction_switch.cpp +++ b/unit_tests/tests/shift_torque_reduction/test_shift_torque_reduction_switch.cpp @@ -95,26 +95,26 @@ namespace { ShiftTorqueReductionSwitchParams { /* inputPin = */ TestSwitchPin::LUA_TORQUE_REDUCTION, /* config = */ ShiftTorqueReductionSwitchTestBase::TEST_ENGINE_CONFIG.clone() - .setTorqueReductionTriggerPin(Gpio::Unassigned) - .setTorqueReductionActivationMode(torqueReductionActivationMode_e::TORQUE_REDUCTION_BUTTON), + .setTorqueReductionActivationMode(torqueReductionActivationMode_e::TORQUE_REDUCTION_BUTTON) + .setTorqueReductionTriggerPin(Gpio::Unassigned), /* expectedIsTorqueReductionTriggerPinValid = */ false, /* description = */ "LUA_TORQUE_REDUCTION" }, ShiftTorqueReductionSwitchParams { /* inputPin = */ TestSwitchPin::LUA_TORQUE_REDUCTION, /* config = */ ShiftTorqueReductionSwitchTestBase::TEST_ENGINE_CONFIG.clone() + .setTorqueReductionActivationMode(torqueReductionActivationMode_e::TORQUE_REDUCTION_BUTTON) .setTorqueReductionTriggerPin(Gpio::Unassigned) - .setTorqueReductionTriggerPinMode(PI_DEFAULT) - .setTorqueReductionActivationMode(torqueReductionActivationMode_e::TORQUE_REDUCTION_BUTTON), + .setTorqueReductionTriggerPinMode(PI_DEFAULT), /* expectedIsTorqueReductionTriggerPinValid = */ false, /* description = */ "LUA_TORQUE_REDUCTION (pinMode = PI_DEFAULT)" }, ShiftTorqueReductionSwitchParams { /* inputPin = */ TestSwitchPin::LUA_TORQUE_REDUCTION, /* config = */ ShiftTorqueReductionSwitchTestBase::TEST_ENGINE_CONFIG.clone() + .setTorqueReductionActivationMode(torqueReductionActivationMode_e::TORQUE_REDUCTION_BUTTON) .setTorqueReductionTriggerPin(Gpio::Unassigned) - .setTorqueReductionTriggerPinMode(PI_INVERTED_DEFAULT) - .setTorqueReductionActivationMode(torqueReductionActivationMode_e::TORQUE_REDUCTION_BUTTON), + .setTorqueReductionTriggerPinMode(PI_INVERTED_DEFAULT), /* expectedIsTorqueReductionTriggerPinValid = */ false, /* description = */ "LUA_TORQUE_REDUCTION (pinMode = PI_INVERTED_DEFAULT)" }, @@ -151,8 +151,8 @@ namespace { ShiftTorqueReductionSwitchParams { /* inputPin = */ TestSwitchPin::LUA_CLUTCH_DOWN, /* config = */ ShiftTorqueReductionSwitchTestBase::TEST_ENGINE_CONFIG.clone() - .setClutchDownPin(Gpio::Unassigned) - .setTorqueReductionActivationMode(torqueReductionActivationMode_e::TORQUE_REDUCTION_CLUTCH_DOWN_SWITCH), + .setTorqueReductionActivationMode(torqueReductionActivationMode_e::TORQUE_REDUCTION_CLUTCH_DOWN_SWITCH) + .setClutchDownPin(Gpio::Unassigned), /* expectedIsTorqueReductionTriggerPinValid = */ false, /* description = */ "LUA_CLUTCH_DOWN" }, @@ -192,8 +192,8 @@ namespace { ShiftTorqueReductionSwitchParams { /* inputPin = */ TestSwitchPin::LUA_CLUTCH_UP, /* config = */ ShiftTorqueReductionSwitchTestBase::TEST_ENGINE_CONFIG.clone() - .setClutchUpPin(Gpio::Unassigned) - .setTorqueReductionActivationMode(torqueReductionActivationMode_e::TORQUE_REDUCTION_CLUTCH_UP_SWITCH), + .setTorqueReductionActivationMode(torqueReductionActivationMode_e::TORQUE_REDUCTION_CLUTCH_UP_SWITCH) + .setClutchUpPin(Gpio::Unassigned), /* expectedIsTorqueReductionTriggerPinValid = */ false, /* description = */ "LUA_CLUTCH_UP" },