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