135375f98Sopenharmony_ci/* AUTOGENERATED FILE. DO NOT EDIT. */ 235375f98Sopenharmony_ci 335375f98Sopenharmony_ci/*=======Test Runner Used To Run Each Test Below=====*/ 435375f98Sopenharmony_ci#define RUN_TEST(TestFunc, TestLineNum) \ 535375f98Sopenharmony_ci{ \ 635375f98Sopenharmony_ci Unity.CurrentTestName = #TestFunc; \ 735375f98Sopenharmony_ci Unity.CurrentTestLineNumber = TestLineNum; \ 835375f98Sopenharmony_ci Unity.NumberOfTests++; \ 935375f98Sopenharmony_ci CMock_Init(); \ 1035375f98Sopenharmony_ci UNITY_CLR_DETAILS(); \ 1135375f98Sopenharmony_ci if (TEST_PROTECT()) \ 1235375f98Sopenharmony_ci { \ 1335375f98Sopenharmony_ci CEXCEPTION_T e; \ 1435375f98Sopenharmony_ci Try { \ 1535375f98Sopenharmony_ci setUp(); \ 1635375f98Sopenharmony_ci TestFunc(); \ 1735375f98Sopenharmony_ci } Catch(e) { TEST_ASSERT_EQUAL_HEX32_MESSAGE(CEXCEPTION_NONE, e, "Unhandled Exception!"); } \ 1835375f98Sopenharmony_ci } \ 1935375f98Sopenharmony_ci if (TEST_PROTECT() && !TEST_IS_IGNORED) \ 2035375f98Sopenharmony_ci { \ 2135375f98Sopenharmony_ci tearDown(); \ 2235375f98Sopenharmony_ci CMock_Verify(); \ 2335375f98Sopenharmony_ci } \ 2435375f98Sopenharmony_ci CMock_Destroy(); \ 2535375f98Sopenharmony_ci UnityConcludeTest(); \ 2635375f98Sopenharmony_ci} 2735375f98Sopenharmony_ci 2835375f98Sopenharmony_ci/*=======Automagically Detected Files To Include=====*/ 2935375f98Sopenharmony_ci#include "unity.h" 3035375f98Sopenharmony_ci#include "cmock.h" 3135375f98Sopenharmony_ci#include <setjmp.h> 3235375f98Sopenharmony_ci#include <stdio.h> 3335375f98Sopenharmony_ci#include "CException.h" 3435375f98Sopenharmony_ci#include "one.h" 3535375f98Sopenharmony_ci#include "two.h" 3635375f98Sopenharmony_ci#include "funky.h" 3735375f98Sopenharmony_ci#include <setjmp.h> 3835375f98Sopenharmony_ci#include "Mockstanky.h" 3935375f98Sopenharmony_ci 4035375f98Sopenharmony_ciint GlobalExpectCount; 4135375f98Sopenharmony_ciint GlobalVerifyOrder; 4235375f98Sopenharmony_cichar* GlobalOrderError; 4335375f98Sopenharmony_ci 4435375f98Sopenharmony_ci/*=======External Functions This Runner Calls=====*/ 4535375f98Sopenharmony_ciextern void setUp(void); 4635375f98Sopenharmony_ciextern void tearDown(void); 4735375f98Sopenharmony_ciextern void test_TheFirstThingToTest(void); 4835375f98Sopenharmony_ciextern void test_TheSecondThingToTest(void); 4935375f98Sopenharmony_ci 5035375f98Sopenharmony_ci 5135375f98Sopenharmony_ci/*=======Mock Management=====*/ 5235375f98Sopenharmony_cistatic void CMock_Init(void) 5335375f98Sopenharmony_ci{ 5435375f98Sopenharmony_ci GlobalExpectCount = 0; 5535375f98Sopenharmony_ci GlobalVerifyOrder = 0; 5635375f98Sopenharmony_ci GlobalOrderError = NULL; 5735375f98Sopenharmony_ci Mockstanky_Init(); 5835375f98Sopenharmony_ci} 5935375f98Sopenharmony_cistatic void CMock_Verify(void) 6035375f98Sopenharmony_ci{ 6135375f98Sopenharmony_ci Mockstanky_Verify(); 6235375f98Sopenharmony_ci} 6335375f98Sopenharmony_cistatic void CMock_Destroy(void) 6435375f98Sopenharmony_ci{ 6535375f98Sopenharmony_ci Mockstanky_Destroy(); 6635375f98Sopenharmony_ci} 6735375f98Sopenharmony_ci 6835375f98Sopenharmony_ci/*=======Test Reset Option=====*/ 6935375f98Sopenharmony_civoid resetTest(void); 7035375f98Sopenharmony_civoid resetTest(void) 7135375f98Sopenharmony_ci{ 7235375f98Sopenharmony_ci CMock_Verify(); 7335375f98Sopenharmony_ci CMock_Destroy(); 7435375f98Sopenharmony_ci tearDown(); 7535375f98Sopenharmony_ci CMock_Init(); 7635375f98Sopenharmony_ci setUp(); 7735375f98Sopenharmony_ci} 7835375f98Sopenharmony_ci 7935375f98Sopenharmony_ci 8035375f98Sopenharmony_ci/*=======MAIN=====*/ 8135375f98Sopenharmony_ciint main(void) 8235375f98Sopenharmony_ci{ 8335375f98Sopenharmony_ci UnityBegin("testdata/mocksample.c"); 8435375f98Sopenharmony_ci RUN_TEST(test_TheFirstThingToTest, 21); 8535375f98Sopenharmony_ci RUN_TEST(test_TheSecondThingToTest, 43); 8635375f98Sopenharmony_ci 8735375f98Sopenharmony_ci CMock_Guts_MemFreeFinal(); 8835375f98Sopenharmony_ci return (UnityEnd()); 8935375f98Sopenharmony_ci} 90