speeduino/test/test_schedules
tx_haggis 0afffb2ca0
Unit test the schedule calculations (#1010)
* Refactor: separate out schedule calcs from speeduino.ino
(so they can be unit tested)

* Add unit tests for compute_delay

* Use PROGMEM to store test input & output

* Add some 720 unit tests

* Rename unit test file

* Test ignition codepaths 2-8

* Test ign1 calcs

* Add first injector calc tests

* Add 720 deg tests
Simplify

* Simplify test_calc_inj1_timeout

* Claw back RAM

* Simplify test framework
Channel angle is part of the test data set.

* Move schedule calculation unit tests into their own harness
Competing for RAM with the rest of Speeduino
can cause them to fail,

* Performance: inline all schedule calcs.

* Unit test end angle

* Unit test calculateIgnitionAngle1

* Test start angles also
And test end angles for channel 1

* Unit test calculateIgnitionAngle3

* Unit test calculateIgnitionAngle4

* Improve unit test output

* Add Nissan360 decoder unit tests.

* Add Ford ST170 decoder unit tests

* Add NGC decoder unit tests
2023-03-06 17:23:17 +11:00
..
test_accuracy_duration.cpp Unit test the schedule calculations (#1010) 2023-03-06 17:23:17 +11:00
test_accuracy_timeout.cpp Unit test the schedule calculations (#1010) 2023-03-06 17:23:17 +11:00
test_schedules.cpp Unit test the schedule calculations (#1010) 2023-03-06 17:23:17 +11:00
test_schedules.h Unit test the schedule calculations (#1010) 2023-03-06 17:23:17 +11:00
test_status_initial_off.cpp Unit test the schedule calculations (#1010) 2023-03-06 17:23:17 +11:00
test_status_off_to_pending.cpp Unit test the schedule calculations (#1010) 2023-03-06 17:23:17 +11:00
test_status_pending_to_running.cpp Major revamp of unit testing framework 2020-11-19 21:38:00 +11:00
test_status_running_to_off.cpp Major revamp of unit testing framework 2020-11-19 21:38:00 +11:00
test_status_running_to_pending.cpp Major revamp of unit testing framework 2020-11-19 21:38:00 +11:00