From 04a4e2bca357aed751d76b47c52382dc6504e555 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sat, 22 Feb 2020 23:18:02 -0500 Subject: [PATCH] ETB: expand automated testing #115 --- firmware/controllers/actuators/electronic_throttle.cpp | 2 ++ unit_tests/tests/test_etb.cpp | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/firmware/controllers/actuators/electronic_throttle.cpp b/firmware/controllers/actuators/electronic_throttle.cpp index f984efe1af..81e4e426e2 100644 --- a/firmware/controllers/actuators/electronic_throttle.cpp +++ b/firmware/controllers/actuators/electronic_throttle.cpp @@ -2,6 +2,8 @@ * @file electronic_throttle.cpp * @brief Electronic Throttle driver * + * @see test test_etb.cpp + * * * Limited user documentation at https://github.com/rusefi/rusefi_documentation/wiki/HOWTO_electronic_throttle_body * diff --git a/unit_tests/tests/test_etb.cpp b/unit_tests/tests/test_etb.cpp index ee31447da9..5e8dcf7df4 100644 --- a/unit_tests/tests/test_etb.cpp +++ b/unit_tests/tests/test_etb.cpp @@ -61,6 +61,10 @@ TEST(etb, singleEtbInitialization) { ASSERT_EQ(0, mocks[1].startCount) << "2nd start"; + // todo: set mock pedal position + // todo: set mock ETB throttle position + // todo: invoke EtbController#PeriodicTask a few times and assert that duty cycle changes + }