Blinker  V1.0
Blinker
E:/Projects/Shelek/Blinker/Software/Application/test/TestApplication_Runner.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   if (TEST_PROTECT()) \
00010   { \
00011       CMock_Init(); \
00012       setUp(); \
00013       TestFunc(); \
00014       CMock_Verify(); \
00015   } \
00016   CMock_Destroy(); \
00017   if (TEST_PROTECT() && !TEST_IS_IGNORED) \
00018   { \
00019     tearDown(); \
00020   } \
00021   UnityConcludeTest(); \
00022 }
00023 
00024 //=======Automagically Detected Files To Include=====
00025 #include "unity.h"
00026 #include "cmock.h"
00027 #include <setjmp.h>
00028 #include <stdio.h>
00029 #include "MockLed.h"
00030 #include "MockTimer.h"
00031 
00032 int GlobalExpectCount;
00033 int GlobalVerifyOrder;
00034 char* GlobalOrderError;
00035 
00036 //=======External Functions This Runner Calls=====
00037 extern void setUp(void);
00038 extern void tearDown(void);
00039 extern void test_Application_init();
00040 extern void test_Application_run();
00041 
00042 
00043 //=======Mock Management=====
00044 static void CMock_Init(void)
00045 {
00046   GlobalExpectCount = 0;
00047   GlobalVerifyOrder = 0;
00048   GlobalOrderError = NULL;
00049   MockLed_Init();
00050   MockTimer_Init();
00051 }
00052 static void CMock_Verify(void)
00053 {
00054   MockLed_Verify();
00055   MockTimer_Verify();
00056 }
00057 static void CMock_Destroy(void)
00058 {
00059   MockLed_Destroy();
00060   MockTimer_Destroy();
00061 }
00062 
00063 //=======Test Reset Option=====
00064 void resetTest()
00065 {
00066   CMock_Verify();
00067   CMock_Destroy();
00068   tearDown();
00069   CMock_Init();
00070   setUp();
00071 }
00072 
00073 
00074 //=======MAIN=====
00075 int main(void)
00076 {
00077   Unity.TestFile = "test/TestApplication.c";
00078   UnityBegin();
00079   RUN_TEST(test_Application_init, 14);
00080   RUN_TEST(test_Application_run, 22);
00081 
00082   return (UnityEnd());
00083 }