Simple interface for Mbed Cloud Client

Dependents:  

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers testsample_def.c Source File

testsample_def.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 "funky.h"
00026 #include "stanky.h"
00027 #include <setjmp.h>
00028 
00029 /*=======External Functions This Runner Calls=====*/
00030 extern void setUp(void);
00031 extern void tearDown(void);
00032 extern void test_TheFirstThingToTest(void);
00033 extern void test_TheSecondThingToTest(void);
00034 extern void test_TheThirdThingToTest(void);
00035 extern void test_TheFourthThingToTest(void);
00036 
00037 
00038 /*=======Test Reset Option=====*/
00039 void resetTest(void);
00040 void resetTest(void)
00041 {
00042   tearDown();
00043   setUp();
00044 }
00045 
00046 
00047 /*=======MAIN=====*/
00048 int main(void)
00049 {
00050   UnityBegin("testdata/testsample.c");
00051   RUN_TEST(test_TheFirstThingToTest, 21);
00052   RUN_TEST(test_TheSecondThingToTest, 43);
00053   RUN_TEST(test_TheThirdThingToTest, 53);
00054   RUN_TEST(test_TheFourthThingToTest, 58);
00055 
00056   return (UnityEnd());
00057 }