Simulated product dispenser

Dependencies:   HTS221

Fork of mbed-cloud-workshop-connect-HTS221 by Jim Carver

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers testsample_mock_param.c Source File

testsample_mock_param.c

00001 /* AUTOGENERATED FILE. DO NOT EDIT. */
00002 
00003 /*=======Test Runner Used To Run Each Test Below=====*/
00004 #define RUN_TEST_NO_ARGS
00005 #define RUN_TEST(TestFunc, TestLineNum, ...) \
00006 { \
00007   Unity.CurrentTestName = #TestFunc "(" #__VA_ARGS__ ")"; \
00008   Unity.CurrentTestLineNumber = TestLineNum; \
00009   Unity.NumberOfTests++; \
00010   CMock_Init(); \
00011   UNITY_CLR_DETAILS(); \
00012   if (TEST_PROTECT()) \
00013   { \
00014       setUp(); \
00015       TestFunc(__VA_ARGS__); \
00016   } \
00017   if (TEST_PROTECT() && !TEST_IS_IGNORED) \
00018   { \
00019     tearDown(); \
00020     CMock_Verify(); \
00021   } \
00022   CMock_Destroy(); \
00023   UnityConcludeTest(); \
00024 }
00025 
00026 /*=======Automagically Detected Files To Include=====*/
00027 #include "unity.h"
00028 #include "cmock.h"
00029 #include <setjmp.h>
00030 #include <stdio.h>
00031 #include "funky.h"
00032 #include <setjmp.h>
00033 #include "Mockstanky.h"
00034 
00035 /*=======External Functions This Runner Calls=====*/
00036 extern void setUp(void);
00037 extern void tearDown(void);
00038 extern void test_TheFirstThingToTest(void);
00039 extern void test_TheSecondThingToTest(void);
00040 
00041 
00042 /*=======Mock Management=====*/
00043 static void CMock_Init(void)
00044 {
00045   Mockstanky_Init();
00046 }
00047 static void CMock_Verify(void)
00048 {
00049   Mockstanky_Verify();
00050 }
00051 static void CMock_Destroy(void)
00052 {
00053   Mockstanky_Destroy();
00054 }
00055 
00056 /*=======Test Reset Option=====*/
00057 void resetTest(void);
00058 void resetTest(void)
00059 {
00060   CMock_Verify();
00061   CMock_Destroy();
00062   tearDown();
00063   CMock_Init();
00064   setUp();
00065 }
00066 
00067 
00068 /*=======MAIN=====*/
00069 int main(void)
00070 {
00071   UnityBegin("testdata/mocksample.c");
00072   RUN_TEST(test_TheFirstThingToTest, 21, RUN_TEST_NO_ARGS);
00073   RUN_TEST(test_TheSecondThingToTest, 43, RUN_TEST_NO_ARGS);
00074 
00075   CMock_Guts_MemFreeFinal();
00076   return (UnityEnd());
00077 }