Simple interface for Mbed Cloud Client
Embed:
(wiki syntax)
Show/hide line numbers
testsample_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 if (TEST_PROTECT()) \ 00010 { \ 00011 setUp(); \ 00012 TestFunc(); \ 00013 } \ 00014 if (TEST_PROTECT() && !TEST_IS_IGNORED) \ 00015 { \ 00016 tearDown(); \ 00017 } \ 00018 UnityConcludeTest(); \ 00019 } 00020 00021 /*=======Automagically Detected Files To Include=====*/ 00022 #include "unity.h" 00023 #include <setjmp.h> 00024 #include <stdio.h> 00025 #include "testsample_head1.h" 00026 00027 /*=======External Functions This Runner Calls=====*/ 00028 extern void setUp(void); 00029 extern void tearDown(void); 00030 extern void test_TheFirstThingToTest(void); 00031 extern void test_TheSecondThingToTest(void); 00032 extern void test_TheThirdThingToTest(void); 00033 extern void test_TheFourthThingToTest(void); 00034 00035 00036 /*=======Test Reset Option=====*/ 00037 void resetTest(void); 00038 void resetTest(void) 00039 { 00040 tearDown(); 00041 setUp(); 00042 } 00043 00044 00045 /*=======MAIN=====*/ 00046 int main(void) 00047 { 00048 UnityBegin("testdata/testsample.c"); 00049 RUN_TEST(test_TheFirstThingToTest, 21); 00050 RUN_TEST(test_TheSecondThingToTest, 43); 00051 RUN_TEST(test_TheThirdThingToTest, 53); 00052 RUN_TEST(test_TheFourthThingToTest, 58); 00053 00054 return (UnityEnd()); 00055 }
Generated on Tue Jul 12 2022 19:01:37 by 1.7.2