1/* AUTOGENERATED FILE. DO NOT EDIT. */
2
3/*=======Test Runner Used To Run Each Test Below=====*/
4#define RUN_TEST(TestFunc, TestLineNum) \
5{ \
6  Unity.CurrentTestName = #TestFunc; \
7  Unity.CurrentTestLineNumber = TestLineNum; \
8  Unity.NumberOfTests++; \
9  CMock_Init(); \
10  UNITY_CLR_DETAILS(); \
11  if (TEST_PROTECT()) \
12  { \
13    CEXCEPTION_T e; \
14    Try { \
15      setUp(); \
16      TestFunc(); \
17    } Catch(e) { TEST_ASSERT_EQUAL_HEX32_MESSAGE(CEXCEPTION_NONE, e, "Unhandled Exception!"); } \
18  } \
19  if (TEST_PROTECT() && !TEST_IS_IGNORED) \
20  { \
21    tearDown(); \
22    CMock_Verify(); \
23  } \
24  CMock_Destroy(); \
25  UnityConcludeTest(); \
26}
27
28/*=======Automagically Detected Files To Include=====*/
29#include "unity.h"
30#include "cmock.h"
31#include <setjmp.h>
32#include <stdio.h>
33#include "CException.h"
34#include "one.h"
35#include "two.h"
36#include "funky.h"
37#include <setjmp.h>
38#include "Mockstanky.h"
39
40int GlobalExpectCount;
41int GlobalVerifyOrder;
42char* GlobalOrderError;
43
44/*=======External Functions This Runner Calls=====*/
45extern void setUp(void);
46extern void tearDown(void);
47extern void test_TheFirstThingToTest(void);
48extern void test_TheSecondThingToTest(void);
49
50
51/*=======Mock Management=====*/
52static void CMock_Init(void)
53{
54  GlobalExpectCount = 0;
55  GlobalVerifyOrder = 0;
56  GlobalOrderError = NULL;
57  Mockstanky_Init();
58}
59static void CMock_Verify(void)
60{
61  Mockstanky_Verify();
62}
63static void CMock_Destroy(void)
64{
65  Mockstanky_Destroy();
66}
67
68/*=======Test Reset Option=====*/
69void resetTest(void);
70void resetTest(void)
71{
72  CMock_Verify();
73  CMock_Destroy();
74  tearDown();
75  CMock_Init();
76  setUp();
77}
78
79
80/*=======MAIN=====*/
81int main(void)
82{
83  UnityBegin("testdata/mocksample.c");
84  RUN_TEST(test_TheFirstThingToTest, 21);
85  RUN_TEST(test_TheSecondThingToTest, 43);
86
87  CMock_Guts_MemFreeFinal();
88  return (UnityEnd());
89}
90