Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FXAS21002 FXOS8700Q
testsample_mock_head1.c
00001 /* AUTOGENERATED FILE. DO NOT EDIT. */ 00002 00003 /*=======Test Runner Used To Run Each Test Below=====*/ 00004 #define RUN_TEST(TestFunc, TestLineNum) \ 00005 { \ 00006 Unity.CurrentTestName = #TestFunc; \ 00007 Unity.CurrentTestLineNumber = TestLineNum; \ 00008 Unity.NumberOfTests++; \ 00009 CMock_Init(); \ 00010 UNITY_CLR_DETAILS(); \ 00011 if (TEST_PROTECT()) \ 00012 { \ 00013 setUp(); \ 00014 TestFunc(); \ 00015 } \ 00016 if (TEST_PROTECT() && !TEST_IS_IGNORED) \ 00017 { \ 00018 tearDown(); \ 00019 CMock_Verify(); \ 00020 } \ 00021 CMock_Destroy(); \ 00022 UnityConcludeTest(); \ 00023 } 00024 00025 /*=======Automagically Detected Files To Include=====*/ 00026 #include "unity.h" 00027 #include "cmock.h" 00028 #include <setjmp.h> 00029 #include <stdio.h> 00030 #include "testsample_mock_head1.h" 00031 #include "Mockstanky.h" 00032 00033 /*=======External Functions This Runner Calls=====*/ 00034 extern void setUp(void); 00035 extern void tearDown(void); 00036 extern void test_TheFirstThingToTest(void); 00037 extern void test_TheSecondThingToTest(void); 00038 00039 00040 /*=======Mock Management=====*/ 00041 static void CMock_Init(void) 00042 { 00043 Mockstanky_Init(); 00044 } 00045 static void CMock_Verify(void) 00046 { 00047 Mockstanky_Verify(); 00048 } 00049 static void CMock_Destroy(void) 00050 { 00051 Mockstanky_Destroy(); 00052 } 00053 00054 /*=======Test Reset Option=====*/ 00055 void resetTest(void); 00056 void resetTest(void) 00057 { 00058 CMock_Verify(); 00059 CMock_Destroy(); 00060 tearDown(); 00061 CMock_Init(); 00062 setUp(); 00063 } 00064 00065 00066 /*=======MAIN=====*/ 00067 int main(void) 00068 { 00069 UnityBegin("testdata/mocksample.c"); 00070 RUN_TEST(test_TheFirstThingToTest, 21); 00071 RUN_TEST(test_TheSecondThingToTest, 43); 00072 00073 CMock_Guts_MemFreeFinal(); 00074 return (UnityEnd()); 00075 }
Generated on Tue Jul 12 2022 20:21:03 by
