ElectronVector / fake_function_framework

A plug-in for Ceedling to use the Fake Function Framework (fff) for mocking instead of Cmock.
MIT License
36 stars 13 forks source link

Added additional call-order macros #5

Closed pJunger closed 6 years ago

pJunger commented 7 years ago

Added recursive TEST_ASSERT_CALLORDER & TEST_ASSERT_CALLORDER_FROM macros, so e.g.

TEST_ASSERT_CALLED_IN_ORDER(0, display_setModeToMinimum);
TEST_ASSERT_CALLED_IN_ORDER(1, display_setModeToMaximum);
TEST_ASSERT_CALLED_IN_ORDER(2, display_setModeToAverage);

can be replaced by

TEST_ASSERT_CALLORDER (display_setModeToMinimum, display_setModeToMaximum, display_setModeToAverage);