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 setUp(); \ 1435375f98Sopenharmony_ci TestFunc(); \ 1535375f98Sopenharmony_ci } \ 1635375f98Sopenharmony_ci if (TEST_PROTECT() && !TEST_IS_IGNORED) \ 1735375f98Sopenharmony_ci { \ 1835375f98Sopenharmony_ci tearDown(); \ 1935375f98Sopenharmony_ci CMock_Verify(); \ 2035375f98Sopenharmony_ci } \ 2135375f98Sopenharmony_ci CMock_Destroy(); \ 2235375f98Sopenharmony_ci UnityConcludeTest(); \ 2335375f98Sopenharmony_ci} 2435375f98Sopenharmony_ci 2535375f98Sopenharmony_ci/*=======Automagically Detected Files To Include=====*/ 2635375f98Sopenharmony_ci#include "unity.h" 2735375f98Sopenharmony_ci#include "cmock.h" 2835375f98Sopenharmony_ci#include <setjmp.h> 2935375f98Sopenharmony_ci#include <stdio.h> 3035375f98Sopenharmony_ci#include "testsample_mock_head1.h" 3135375f98Sopenharmony_ci#include "Mockstanky.h" 3235375f98Sopenharmony_ci 3335375f98Sopenharmony_ci/*=======External Functions This Runner Calls=====*/ 3435375f98Sopenharmony_ciextern void setUp(void); 3535375f98Sopenharmony_ciextern void tearDown(void); 3635375f98Sopenharmony_ciextern void test_TheFirstThingToTest(void); 3735375f98Sopenharmony_ciextern void test_TheSecondThingToTest(void); 3835375f98Sopenharmony_ci 3935375f98Sopenharmony_ci 4035375f98Sopenharmony_ci/*=======Mock Management=====*/ 4135375f98Sopenharmony_cistatic void CMock_Init(void) 4235375f98Sopenharmony_ci{ 4335375f98Sopenharmony_ci Mockstanky_Init(); 4435375f98Sopenharmony_ci} 4535375f98Sopenharmony_cistatic void CMock_Verify(void) 4635375f98Sopenharmony_ci{ 4735375f98Sopenharmony_ci Mockstanky_Verify(); 4835375f98Sopenharmony_ci} 4935375f98Sopenharmony_cistatic void CMock_Destroy(void) 5035375f98Sopenharmony_ci{ 5135375f98Sopenharmony_ci Mockstanky_Destroy(); 5235375f98Sopenharmony_ci} 5335375f98Sopenharmony_ci 5435375f98Sopenharmony_ci/*=======Test Reset Option=====*/ 5535375f98Sopenharmony_civoid resetTest(void); 5635375f98Sopenharmony_civoid resetTest(void) 5735375f98Sopenharmony_ci{ 5835375f98Sopenharmony_ci CMock_Verify(); 5935375f98Sopenharmony_ci CMock_Destroy(); 6035375f98Sopenharmony_ci tearDown(); 6135375f98Sopenharmony_ci CMock_Init(); 6235375f98Sopenharmony_ci setUp(); 6335375f98Sopenharmony_ci} 6435375f98Sopenharmony_ci 6535375f98Sopenharmony_ci 6635375f98Sopenharmony_ci/*=======MAIN=====*/ 6735375f98Sopenharmony_ciint main(void) 6835375f98Sopenharmony_ci{ 6935375f98Sopenharmony_ci UnityBegin("testdata/mocksample.c"); 7035375f98Sopenharmony_ci RUN_TEST(test_TheFirstThingToTest, 21); 7135375f98Sopenharmony_ci RUN_TEST(test_TheSecondThingToTest, 43); 7235375f98Sopenharmony_ci 7335375f98Sopenharmony_ci CMock_Guts_MemFreeFinal(); 7435375f98Sopenharmony_ci return (UnityEnd()); 7535375f98Sopenharmony_ci} 76