1 /* AUTOGENERATED FILE. DO NOT EDIT. */ 2 3 /*=======Test Runner Used To Run Each Test Below=====*/ 4 #define RUN_TEST_NO_ARGS 5 #define RUN_TEST(TestFunc, TestLineNum, ...) \ 6 { \ 7 Unity.CurrentTestName = #TestFunc "(" #__VA_ARGS__ ")"; \ 8 Unity.CurrentTestLineNumber = TestLineNum; \ 9 Unity.NumberOfTests++; \ 10 CMock_Init(); \ 11 UNITY_CLR_DETAILS(); \ 12 if (TEST_PROTECT()) \ 13 { \ 14 setUp(); \ 15 TestFunc(__VA_ARGS__); \ 16 } \ 17 if (TEST_PROTECT() && !TEST_IS_IGNORED) \ 18 { \ 19 tearDown(); \ 20 CMock_Verify(); \ 21 } \ 22 CMock_Destroy(); \ 23 UnityConcludeTest(); \ 24 } 25 26 /*=======Automagically Detected Files To Include=====*/ 27 #include "unity.h" 28 #include "cmock.h" 29 #include <setjmp.h> 30 #include <stdio.h> 31 #include "funky.h" 32 #include <setjmp.h> 33 #include "Mockstanky.h" 34 35 /*=======External Functions This Runner Calls=====*/ 36 extern void setUp(void); 37 extern void tearDown(void); 38 extern void test_TheFirstThingToTest(void); 39 extern void test_TheSecondThingToTest(void); 40 41 42 /*=======Mock Management=====*/ CMock_Init(void)43static void CMock_Init(void) 44 { 45 Mockstanky_Init(); 46 } CMock_Verify(void)47static void CMock_Verify(void) 48 { 49 Mockstanky_Verify(); 50 } CMock_Destroy(void)51static void CMock_Destroy(void) 52 { 53 Mockstanky_Destroy(); 54 } 55 56 /*=======Test Reset Option=====*/ 57 void resetTest(void); resetTest(void)58void resetTest(void) 59 { 60 CMock_Verify(); 61 CMock_Destroy(); 62 tearDown(); 63 CMock_Init(); 64 setUp(); 65 } 66 67 68 /*=======MAIN=====*/ main(void)69int main(void) 70 { 71 UnityBegin("testdata/mocksample.c"); 72 RUN_TEST(test_TheFirstThingToTest, 21, RUN_TEST_NO_ARGS); 73 RUN_TEST(test_TheSecondThingToTest, 43, RUN_TEST_NO_ARGS); 74 75 CMock_Guts_MemFreeFinal(); 76 return (UnityEnd()); 77 } 78