Simple interface for Mbed Cloud Client
Embed:
(wiki syntax)
Show/hide line numbers
testsample_run1.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 CEXCEPTION_T e; \ 00012 Try { \ 00013 setUp(); \ 00014 TestFunc(); \ 00015 } Catch(e) { TEST_ASSERT_EQUAL_HEX32_MESSAGE(CEXCEPTION_NONE, e, "Unhandled Exception!"); } \ 00016 } \ 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 <setjmp.h> 00027 #include <stdio.h> 00028 #include "CException.h" 00029 #include "one.h" 00030 #include "two.h" 00031 #include "funky.h" 00032 #include "stanky.h" 00033 #include <setjmp.h> 00034 00035 int GlobalExpectCount; 00036 int GlobalVerifyOrder; 00037 char* GlobalOrderError; 00038 00039 /*=======External Functions This Runner Calls=====*/ 00040 extern void setUp(void); 00041 extern void tearDown(void); 00042 extern void test_TheFirstThingToTest(void); 00043 extern void test_TheSecondThingToTest(void); 00044 extern void test_TheThirdThingToTest(void); 00045 extern void test_TheFourthThingToTest(void); 00046 00047 00048 /*=======Test Reset Option=====*/ 00049 void resetTest(void); 00050 void resetTest(void) 00051 { 00052 tearDown(); 00053 setUp(); 00054 } 00055 00056 00057 /*=======MAIN=====*/ 00058 int main(void) 00059 { 00060 UnityBegin("testdata/testsample.c"); 00061 RUN_TEST(test_TheFirstThingToTest, 21); 00062 RUN_TEST(test_TheSecondThingToTest, 43); 00063 RUN_TEST(test_TheThirdThingToTest, 53); 00064 RUN_TEST(test_TheFourthThingToTest, 58); 00065 00066 return (UnityEnd()); 00067 }
Generated on Tue Jul 12 2022 19:01:37 by 1.7.2