diff options
Diffstat (limited to 'FreeRTOS-Plus/Test/CMock/vendor/unity/examples/example_1/test/test_runners/TestProductionCode2_Runner.c')
-rw-r--r-- | FreeRTOS-Plus/Test/CMock/vendor/unity/examples/example_1/test/test_runners/TestProductionCode2_Runner.c | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/FreeRTOS-Plus/Test/CMock/vendor/unity/examples/example_1/test/test_runners/TestProductionCode2_Runner.c b/FreeRTOS-Plus/Test/CMock/vendor/unity/examples/example_1/test/test_runners/TestProductionCode2_Runner.c new file mode 100644 index 000000000..cf72c219d --- /dev/null +++ b/FreeRTOS-Plus/Test/CMock/vendor/unity/examples/example_1/test/test_runners/TestProductionCode2_Runner.c @@ -0,0 +1,53 @@ +/* AUTOGENERATED FILE. DO NOT EDIT. */ + +/*=======Test Runner Used To Run Each Test Below=====*/ +#define RUN_TEST(TestFunc, TestLineNum) \ +{ \ + Unity.CurrentTestName = #TestFunc; \ + Unity.CurrentTestLineNumber = TestLineNum; \ + Unity.NumberOfTests++; \ + if (TEST_PROTECT()) \ + { \ + setUp(); \ + TestFunc(); \ + } \ + if (TEST_PROTECT()) \ + { \ + tearDown(); \ + } \ + UnityConcludeTest(); \ +} + +/*=======Automagically Detected Files To Include=====*/ +#include "unity.h" +#include <setjmp.h> +#include <stdio.h> +#include "ProductionCode2.h" + +/*=======External Functions This Runner Calls=====*/ +extern void setUp(void); +extern void tearDown(void); +extern void test_IgnoredTest(void); +extern void test_AnotherIgnoredTest(void); +extern void test_ThisFunctionHasNotBeenTested_NeedsToBeImplemented(void); + + +/*=======Test Reset Option=====*/ +void resetTest(void); +void resetTest(void) +{ + tearDown(); + setUp(); +} + + +/*=======MAIN=====*/ +int main(void) +{ + UnityBegin("test/TestProductionCode2.c"); + RUN_TEST(test_IgnoredTest, 18); + RUN_TEST(test_AnotherIgnoredTest, 23); + RUN_TEST(test_ThisFunctionHasNotBeenTested_NeedsToBeImplemented, 28); + + return (UnityEnd()); +} |