提交 72c55e02 编写于 作者: M Mark VanderVoord

- Fixed script tests to match Shelly's changes

上级 635884b0
/* AUTOGENERATED FILE. DO NOT EDIT. */ /* AUTOGENERATED FILE. DO NOT EDIT. */
//=======Test Runner Used To Run Each Test Below===== //=======Test Runner Used To Run Each Test Below=====
#define RUN_TEST(TestFunc, TestLineNum) \ #define RUN_TEST(TestFunc, TestLineNum) \
{ \ { \
Unity.CurrentTestName = #TestFunc; \ Unity.CurrentTestName = #TestFunc; \
Unity.CurrentTestLineNumber = TestLineNum; \ Unity.CurrentTestLineNumber = TestLineNum; \
Unity.NumberOfTests++; \ Unity.NumberOfTests++; \
if (TEST_PROTECT()) \ if (TEST_PROTECT()) \
{ \ { \
CEXCEPTION_T e; \ CEXCEPTION_T e; \
Try { \ Try { \
setUp(); \ setUp(); \
TestFunc(); \ TestFunc(); \
} Catch(e) { TEST_ASSERT_EQUAL_HEX32_MESSAGE(CEXCEPTION_NONE, e, "Unhandled Exception!"); } \ } Catch(e) { TEST_ASSERT_EQUAL_HEX32_MESSAGE(CEXCEPTION_NONE, e, "Unhandled Exception!"); } \
} \ } \
if (TEST_PROTECT() && !TEST_IS_IGNORED) \ if (TEST_PROTECT() && !TEST_IS_IGNORED) \
{ \ { \
tearDown(); \ tearDown(); \
} \ } \
UnityConcludeTest(); \ UnityConcludeTest(); \
} }
//=======Automagically Detected Files To Include===== //=======Automagically Detected Files To Include=====
#include "unity.h" #include "unity.h"
#include <setjmp.h> #include <setjmp.h>
#include <stdio.h> #include <stdio.h>
#include "CException.h" #include "CException.h"
#include "funky.h"
//=======External Functions This Runner Calls===== #include "stanky.h"
extern void setUp(void); #include <setjmp.h>
extern void tearDown(void);
extern void test_TheFirstThingToTest(void); //=======External Functions This Runner Calls=====
extern void test_TheSecondThingToTest(void); extern void setUp(void);
extern void tearDown(void);
extern void test_TheFirstThingToTest(void);
//=======Test Reset Option===== extern void test_TheSecondThingToTest(void);
void resetTest()
{
tearDown(); //=======Test Reset Option=====
setUp(); void resetTest()
} {
tearDown();
setUp();
//=======MAIN===== }
int main(void)
{
Unity.TestFile = "test/testdata/testsample.c"; //=======MAIN=====
UnityBegin(); int main(void)
RUN_TEST(test_TheFirstThingToTest, 21); {
RUN_TEST(test_TheSecondThingToTest, 43); Unity.TestFile = "test/testdata/testsample.c";
UnityBegin();
return (UnityEnd()); RUN_TEST(test_TheFirstThingToTest, 21);
} RUN_TEST(test_TheSecondThingToTest, 43);
return (UnityEnd());
}
/* AUTOGENERATED FILE. DO NOT EDIT. */ /* AUTOGENERATED FILE. DO NOT EDIT. */
//=======Test Runner Used To Run Each Test Below===== //=======Test Runner Used To Run Each Test Below=====
#define RUN_TEST(TestFunc, TestLineNum) \ #define RUN_TEST(TestFunc, TestLineNum) \
{ \ { \
Unity.CurrentTestName = #TestFunc; \ Unity.CurrentTestName = #TestFunc; \
Unity.CurrentTestLineNumber = TestLineNum; \ Unity.CurrentTestLineNumber = TestLineNum; \
Unity.NumberOfTests++; \ Unity.NumberOfTests++; \
if (TEST_PROTECT()) \ if (TEST_PROTECT()) \
{ \ { \
setUp(); \ setUp(); \
TestFunc(); \ TestFunc(); \
} \ } \
if (TEST_PROTECT() && !TEST_IS_IGNORED) \ if (TEST_PROTECT() && !TEST_IS_IGNORED) \
{ \ { \
tearDown(); \ tearDown(); \
} \ } \
UnityConcludeTest(); \ UnityConcludeTest(); \
} }
//=======Automagically Detected Files To Include===== //=======Automagically Detected Files To Include=====
#include "unity.h" #include "unity.h"
#include <setjmp.h> #include <setjmp.h>
#include <stdio.h> #include <stdio.h>
#include "funky.h"
//=======External Functions This Runner Calls===== #include "stanky.h"
extern void setUp(void); #include <setjmp.h>
extern void tearDown(void);
extern void test_TheFirstThingToTest(void); //=======External Functions This Runner Calls=====
extern void test_TheSecondThingToTest(void); extern void setUp(void);
extern void tearDown(void);
extern void test_TheFirstThingToTest(void);
//=======Test Reset Option===== extern void test_TheSecondThingToTest(void);
void resetTest()
{
tearDown(); //=======Test Reset Option=====
setUp(); void resetTest()
} {
tearDown();
setUp();
//=======MAIN===== }
int main(void)
{
Unity.TestFile = "test/testdata/testsample.c"; //=======MAIN=====
UnityBegin(); int main(void)
RUN_TEST(test_TheFirstThingToTest, 21); {
RUN_TEST(test_TheSecondThingToTest, 43); Unity.TestFile = "test/testdata/testsample.c";
UnityBegin();
return (UnityEnd()); RUN_TEST(test_TheFirstThingToTest, 21);
} RUN_TEST(test_TheSecondThingToTest, 43);
return (UnityEnd());
}
/* AUTOGENERATED FILE. DO NOT EDIT. */ /* AUTOGENERATED FILE. DO NOT EDIT. */
//=======Test Runner Used To Run Each Test Below===== //=======Test Runner Used To Run Each Test Below=====
#define RUN_TEST(TestFunc, TestLineNum) \ #define RUN_TEST(TestFunc, TestLineNum) \
{ \ { \
Unity.CurrentTestName = #TestFunc; \ Unity.CurrentTestName = #TestFunc; \
Unity.CurrentTestLineNumber = TestLineNum; \ Unity.CurrentTestLineNumber = TestLineNum; \
Unity.NumberOfTests++; \ Unity.NumberOfTests++; \
if (TEST_PROTECT()) \ if (TEST_PROTECT()) \
{ \ { \
CEXCEPTION_T e; \ CEXCEPTION_T e; \
Try { \ Try { \
CMock_Init(); \ CMock_Init(); \
setUp(); \ setUp(); \
TestFunc(); \ TestFunc(); \
CMock_Verify(); \ CMock_Verify(); \
} Catch(e) { TEST_ASSERT_EQUAL_HEX32_MESSAGE(CEXCEPTION_NONE, e, "Unhandled Exception!"); } \ } Catch(e) { TEST_ASSERT_EQUAL_HEX32_MESSAGE(CEXCEPTION_NONE, e, "Unhandled Exception!"); } \
} \ } \
CMock_Destroy(); \ CMock_Destroy(); \
if (TEST_PROTECT() && !TEST_IS_IGNORED) \ if (TEST_PROTECT() && !TEST_IS_IGNORED) \
{ \ { \
tearDown(); \ tearDown(); \
} \ } \
UnityConcludeTest(); \ UnityConcludeTest(); \
} }
//=======Automagically Detected Files To Include===== //=======Automagically Detected Files To Include=====
#include "unity.h" #include "unity.h"
#include "cmock.h" #include "cmock.h"
#include <setjmp.h> #include <setjmp.h>
#include <stdio.h> #include <stdio.h>
#include "CException.h" #include "CException.h"
#include "Mockstanky.h" #include "funky.h"
#include <setjmp.h>
//=======External Functions This Runner Calls===== #include "Mockstanky.h"
extern void setUp(void);
extern void tearDown(void); //=======External Functions This Runner Calls=====
extern void test_TheFirstThingToTest(void); extern void setUp(void);
extern void test_TheSecondThingToTest(void); extern void tearDown(void);
extern void test_TheFirstThingToTest(void);
extern void test_TheSecondThingToTest(void);
//=======Mock Management=====
static void CMock_Init(void)
{ //=======Mock Management=====
Mockstanky_Init(); static void CMock_Init(void)
} {
static void CMock_Verify(void) Mockstanky_Init();
{ }
Mockstanky_Verify(); static void CMock_Verify(void)
} {
static void CMock_Destroy(void) Mockstanky_Verify();
{ }
Mockstanky_Destroy(); static void CMock_Destroy(void)
} {
Mockstanky_Destroy();
//=======Test Reset Option===== }
void resetTest()
{ //=======Test Reset Option=====
CMock_Verify(); void resetTest()
CMock_Destroy(); {
tearDown(); CMock_Verify();
CMock_Init(); CMock_Destroy();
setUp(); tearDown();
} CMock_Init();
setUp();
}
//=======MAIN=====
int main(void)
{ //=======MAIN=====
Unity.TestFile = "test/testdata/mocksample.c"; int main(void)
UnityBegin(); {
RUN_TEST(test_TheFirstThingToTest, 21); Unity.TestFile = "test/testdata/mocksample.c";
RUN_TEST(test_TheSecondThingToTest, 43); UnityBegin();
RUN_TEST(test_TheFirstThingToTest, 21);
return (UnityEnd()); RUN_TEST(test_TheSecondThingToTest, 43);
}
return (UnityEnd());
}
/* AUTOGENERATED FILE. DO NOT EDIT. */ /* AUTOGENERATED FILE. DO NOT EDIT. */
//=======Test Runner Used To Run Each Test Below===== //=======Test Runner Used To Run Each Test Below=====
#define RUN_TEST(TestFunc, TestLineNum) \ #define RUN_TEST(TestFunc, TestLineNum) \
{ \ { \
Unity.CurrentTestName = #TestFunc; \ Unity.CurrentTestName = #TestFunc; \
Unity.CurrentTestLineNumber = TestLineNum; \ Unity.CurrentTestLineNumber = TestLineNum; \
Unity.NumberOfTests++; \ Unity.NumberOfTests++; \
if (TEST_PROTECT()) \ if (TEST_PROTECT()) \
{ \ { \
CMock_Init(); \ CMock_Init(); \
setUp(); \ setUp(); \
TestFunc(); \ TestFunc(); \
CMock_Verify(); \ CMock_Verify(); \
} \ } \
CMock_Destroy(); \ CMock_Destroy(); \
if (TEST_PROTECT() && !TEST_IS_IGNORED) \ if (TEST_PROTECT() && !TEST_IS_IGNORED) \
{ \ { \
tearDown(); \ tearDown(); \
} \ } \
UnityConcludeTest(); \ UnityConcludeTest(); \
} }
//=======Automagically Detected Files To Include===== //=======Automagically Detected Files To Include=====
#include "unity.h" #include "unity.h"
#include "cmock.h" #include "cmock.h"
#include <setjmp.h> #include <setjmp.h>
#include <stdio.h> #include <stdio.h>
#include "Mockstanky.h" #include "funky.h"
#include <setjmp.h>
//=======External Functions This Runner Calls===== #include "Mockstanky.h"
extern void setUp(void);
extern void tearDown(void); //=======External Functions This Runner Calls=====
extern void test_TheFirstThingToTest(void); extern void setUp(void);
extern void test_TheSecondThingToTest(void); extern void tearDown(void);
extern void test_TheFirstThingToTest(void);
extern void test_TheSecondThingToTest(void);
//=======Mock Management=====
static void CMock_Init(void)
{ //=======Mock Management=====
Mockstanky_Init(); static void CMock_Init(void)
} {
static void CMock_Verify(void) Mockstanky_Init();
{ }
Mockstanky_Verify(); static void CMock_Verify(void)
} {
static void CMock_Destroy(void) Mockstanky_Verify();
{ }
Mockstanky_Destroy(); static void CMock_Destroy(void)
} {
Mockstanky_Destroy();
//=======Test Reset Option===== }
void resetTest()
{ //=======Test Reset Option=====
CMock_Verify(); void resetTest()
CMock_Destroy(); {
tearDown(); CMock_Verify();
CMock_Init(); CMock_Destroy();
setUp(); tearDown();
} CMock_Init();
setUp();
}
//=======MAIN=====
int main(void)
{ //=======MAIN=====
Unity.TestFile = "test/testdata/mocksample.c"; int main(void)
UnityBegin(); {
RUN_TEST(test_TheFirstThingToTest, 21); Unity.TestFile = "test/testdata/mocksample.c";
RUN_TEST(test_TheSecondThingToTest, 43); UnityBegin();
RUN_TEST(test_TheFirstThingToTest, 21);
return (UnityEnd()); RUN_TEST(test_TheSecondThingToTest, 43);
}
return (UnityEnd());
}
/* AUTOGENERATED FILE. DO NOT EDIT. */ /* AUTOGENERATED FILE. DO NOT EDIT. */
//=======Test Runner Used To Run Each Test Below===== //=======Test Runner Used To Run Each Test Below=====
#define RUN_TEST(TestFunc, TestLineNum) \ #define RUN_TEST(TestFunc, TestLineNum) \
{ \ { \
Unity.CurrentTestName = #TestFunc; \ Unity.CurrentTestName = #TestFunc; \
Unity.CurrentTestLineNumber = TestLineNum; \ Unity.CurrentTestLineNumber = TestLineNum; \
Unity.NumberOfTests++; \ Unity.NumberOfTests++; \
if (TEST_PROTECT()) \ if (TEST_PROTECT()) \
{ \ { \
CEXCEPTION_T e; \ CEXCEPTION_T e; \
Try { \ Try { \
CMock_Init(); \ CMock_Init(); \
setUp(); \ setUp(); \
TestFunc(); \ TestFunc(); \
CMock_Verify(); \ CMock_Verify(); \
} Catch(e) { TEST_ASSERT_EQUAL_HEX32_MESSAGE(CEXCEPTION_NONE, e, "Unhandled Exception!"); } \ } Catch(e) { TEST_ASSERT_EQUAL_HEX32_MESSAGE(CEXCEPTION_NONE, e, "Unhandled Exception!"); } \
} \ } \
CMock_Destroy(); \ CMock_Destroy(); \
if (TEST_PROTECT() && !TEST_IS_IGNORED) \ if (TEST_PROTECT() && !TEST_IS_IGNORED) \
{ \ { \
tearDown(); \ tearDown(); \
} \ } \
UnityConcludeTest(); \ UnityConcludeTest(); \
} }
//=======Automagically Detected Files To Include===== //=======Automagically Detected Files To Include=====
#include "unity.h" #include "unity.h"
#include "cmock.h" #include "cmock.h"
#include "one.h" #include "one.h"
#include "two.h" #include "two.h"
#include <setjmp.h> #include <setjmp.h>
#include <stdio.h> #include <stdio.h>
#include "CException.h" #include "CException.h"
#include "Mockstanky.h" #include "funky.h"
#include <setjmp.h>
int GlobalExpectCount; #include "Mockstanky.h"
int GlobalVerifyOrder;
char* GlobalOrderError; int GlobalExpectCount;
int GlobalVerifyOrder;
//=======External Functions This Runner Calls===== char* GlobalOrderError;
extern void setUp(void);
extern void tearDown(void); //=======External Functions This Runner Calls=====
extern void test_TheFirstThingToTest(void); extern void setUp(void);
extern void test_TheSecondThingToTest(void); extern void tearDown(void);
extern void test_TheFirstThingToTest(void);
extern void test_TheSecondThingToTest(void);
//=======Mock Management=====
static void CMock_Init(void)
{ //=======Mock Management=====
GlobalExpectCount = 0; static void CMock_Init(void)
GlobalVerifyOrder = 0; {
GlobalOrderError = NULL; GlobalExpectCount = 0;
Mockstanky_Init(); GlobalVerifyOrder = 0;
} GlobalOrderError = NULL;
static void CMock_Verify(void) Mockstanky_Init();
{ }
Mockstanky_Verify(); static void CMock_Verify(void)
} {
static void CMock_Destroy(void) Mockstanky_Verify();
{ }
Mockstanky_Destroy(); static void CMock_Destroy(void)
} {
Mockstanky_Destroy();
//=======Test Reset Option===== }
void resetTest()
{ //=======Test Reset Option=====
CMock_Verify(); void resetTest()
CMock_Destroy(); {
tearDown(); CMock_Verify();
CMock_Init(); CMock_Destroy();
setUp(); tearDown();
} CMock_Init();
setUp();
}
//=======MAIN=====
int main(void)
{ //=======MAIN=====
Unity.TestFile = "test/testdata/mocksample.c"; int main(void)
UnityBegin(); {
RUN_TEST(test_TheFirstThingToTest, 21); Unity.TestFile = "test/testdata/mocksample.c";
RUN_TEST(test_TheSecondThingToTest, 43); UnityBegin();
RUN_TEST(test_TheFirstThingToTest, 21);
return (UnityEnd()); RUN_TEST(test_TheSecondThingToTest, 43);
}
return (UnityEnd());
}
/* AUTOGENERATED FILE. DO NOT EDIT. */ /* AUTOGENERATED FILE. DO NOT EDIT. */
//=======Test Runner Used To Run Each Test Below===== //=======Test Runner Used To Run Each Test Below=====
#define RUN_TEST(TestFunc, TestLineNum) \ #define RUN_TEST(TestFunc, TestLineNum) \
{ \ { \
Unity.CurrentTestName = #TestFunc; \ Unity.CurrentTestName = #TestFunc; \
Unity.CurrentTestLineNumber = TestLineNum; \ Unity.CurrentTestLineNumber = TestLineNum; \
Unity.NumberOfTests++; \ Unity.NumberOfTests++; \
if (TEST_PROTECT()) \ if (TEST_PROTECT()) \
{ \ { \
CMock_Init(); \ CMock_Init(); \
setUp(); \ setUp(); \
TestFunc(); \ TestFunc(); \
CMock_Verify(); \ CMock_Verify(); \
} \ } \
CMock_Destroy(); \ CMock_Destroy(); \
if (TEST_PROTECT() && !TEST_IS_IGNORED) \ if (TEST_PROTECT() && !TEST_IS_IGNORED) \
{ \ { \
tearDown(); \ tearDown(); \
} \ } \
UnityConcludeTest(); \ UnityConcludeTest(); \
} }
//=======Automagically Detected Files To Include===== //=======Automagically Detected Files To Include=====
#include "unity.h" #include "unity.h"
#include "cmock.h" #include "cmock.h"
#include <setjmp.h> #include <setjmp.h>
#include <stdio.h> #include <stdio.h>
#include "Mockstanky.h" #include "funky.h"
#include <setjmp.h>
//=======External Functions This Runner Calls===== #include "Mockstanky.h"
extern void setUp(void);
extern void tearDown(void); //=======External Functions This Runner Calls=====
extern void test_TheFirstThingToTest(void); extern void setUp(void);
extern void test_TheSecondThingToTest(void); extern void tearDown(void);
extern void test_TheFirstThingToTest(void);
extern void test_TheSecondThingToTest(void);
//=======Mock Management=====
static void CMock_Init(void)
{ //=======Mock Management=====
Mockstanky_Init(); static void CMock_Init(void)
} {
static void CMock_Verify(void) Mockstanky_Init();
{ }
Mockstanky_Verify(); static void CMock_Verify(void)
} {
static void CMock_Destroy(void) Mockstanky_Verify();
{ }
Mockstanky_Destroy(); static void CMock_Destroy(void)
} {
Mockstanky_Destroy();
//=======Suite Setup===== }
static int suite_setup(void)
{ //=======Suite Setup=====
a_custom_setup(); static int suite_setup(void)
} {
a_custom_setup();
//=======Suite Teardown===== }
static int suite_teardown(int num_failures)
{ //=======Suite Teardown=====
a_custom_teardown(); static int suite_teardown(int num_failures)
} {
a_custom_teardown();
//=======Test Reset Option===== }
void resetTest()
{ //=======Test Reset Option=====
CMock_Verify(); void resetTest()
CMock_Destroy(); {
tearDown(); CMock_Verify();
CMock_Init(); CMock_Destroy();
setUp(); tearDown();
} CMock_Init();
setUp();
}
//=======MAIN=====
int main(void)
{ //=======MAIN=====
suite_setup(); int main(void)
Unity.TestFile = "test/testdata/mocksample.c"; {
UnityBegin(); suite_setup();
RUN_TEST(test_TheFirstThingToTest, 21); Unity.TestFile = "test/testdata/mocksample.c";
RUN_TEST(test_TheSecondThingToTest, 43); UnityBegin();
RUN_TEST(test_TheFirstThingToTest, 21);
return suite_teardown(UnityEnd()); RUN_TEST(test_TheSecondThingToTest, 43);
}
return suite_teardown(UnityEnd());
}
/* AUTOGENERATED FILE. DO NOT EDIT. */ /* AUTOGENERATED FILE. DO NOT EDIT. */
//=======Test Runner Used To Run Each Test Below===== //=======Test Runner Used To Run Each Test Below=====
#define RUN_TEST_NO_ARGS #define RUN_TEST_NO_ARGS
#define RUN_TEST(TestFunc, TestLineNum, ...) \ #define RUN_TEST(TestFunc, TestLineNum, ...) \
{ \ { \
Unity.CurrentTestName = #TestFunc "(" #__VA_ARGS__ ")"; \ Unity.CurrentTestName = #TestFunc "(" #__VA_ARGS__ ")"; \
Unity.CurrentTestLineNumber = TestLineNum; \ Unity.CurrentTestLineNumber = TestLineNum; \
Unity.NumberOfTests++; \ Unity.NumberOfTests++; \
if (TEST_PROTECT()) \ if (TEST_PROTECT()) \
{ \ { \
CMock_Init(); \ CMock_Init(); \
setUp(); \ setUp(); \
TestFunc(__VA_ARGS__); \ TestFunc(__VA_ARGS__); \
CMock_Verify(); \ CMock_Verify(); \
} \ } \
CMock_Destroy(); \ CMock_Destroy(); \
if (TEST_PROTECT() && !TEST_IS_IGNORED) \ if (TEST_PROTECT() && !TEST_IS_IGNORED) \
{ \ { \
tearDown(); \ tearDown(); \
} \ } \
UnityConcludeTest(); \ UnityConcludeTest(); \
} }
//=======Automagically Detected Files To Include===== //=======Automagically Detected Files To Include=====
#include "unity.h" #include "unity.h"
#include "cmock.h" #include "cmock.h"
#include <setjmp.h> #include <setjmp.h>
#include <stdio.h> #include <stdio.h>
#include "Mockstanky.h" #include "funky.h"
#include <setjmp.h>
//=======External Functions This Runner Calls===== #include "Mockstanky.h"
extern void setUp(void);
extern void tearDown(void); //=======External Functions This Runner Calls=====
extern void test_TheFirstThingToTest(void); extern void setUp(void);
extern void test_TheSecondThingToTest(void); extern void tearDown(void);
extern void test_TheFirstThingToTest(void);
extern void test_TheSecondThingToTest(void);
//=======Mock Management=====
static void CMock_Init(void)
{ //=======Mock Management=====
Mockstanky_Init(); static void CMock_Init(void)
} {
static void CMock_Verify(void) Mockstanky_Init();
{ }
Mockstanky_Verify(); static void CMock_Verify(void)
} {
static void CMock_Destroy(void) Mockstanky_Verify();
{ }
Mockstanky_Destroy(); static void CMock_Destroy(void)
} {
Mockstanky_Destroy();
//=======Test Reset Option===== }
void resetTest()
{ //=======Test Reset Option=====
CMock_Verify(); void resetTest()
CMock_Destroy(); {
tearDown(); CMock_Verify();
CMock_Init(); CMock_Destroy();
setUp(); tearDown();
} CMock_Init();
setUp();
}
//=======MAIN=====
int main(void)
{ //=======MAIN=====
Unity.TestFile = "test/testdata/mocksample.c"; int main(void)
UnityBegin(); {
RUN_TEST(test_TheFirstThingToTest, 21, RUN_TEST_NO_ARGS); Unity.TestFile = "test/testdata/mocksample.c";
RUN_TEST(test_TheSecondThingToTest, 43, RUN_TEST_NO_ARGS); UnityBegin();
RUN_TEST(test_TheFirstThingToTest, 21, RUN_TEST_NO_ARGS);
return (UnityEnd()); RUN_TEST(test_TheSecondThingToTest, 43, RUN_TEST_NO_ARGS);
}
return (UnityEnd());
}
/* AUTOGENERATED FILE. DO NOT EDIT. */ /* AUTOGENERATED FILE. DO NOT EDIT. */
//=======Test Runner Used To Run Each Test Below===== //=======Test Runner Used To Run Each Test Below=====
#define RUN_TEST(TestFunc, TestLineNum) \ #define RUN_TEST(TestFunc, TestLineNum) \
{ \ { \
Unity.CurrentTestName = #TestFunc; \ Unity.CurrentTestName = #TestFunc; \
Unity.CurrentTestLineNumber = TestLineNum; \ Unity.CurrentTestLineNumber = TestLineNum; \
Unity.NumberOfTests++; \ Unity.NumberOfTests++; \
if (TEST_PROTECT()) \ if (TEST_PROTECT()) \
{ \ { \
CEXCEPTION_T e; \ CEXCEPTION_T e; \
Try { \ Try { \
CMock_Init(); \ CMock_Init(); \
setUp(); \ setUp(); \
TestFunc(); \ TestFunc(); \
CMock_Verify(); \ CMock_Verify(); \
} Catch(e) { TEST_ASSERT_EQUAL_HEX32_MESSAGE(CEXCEPTION_NONE, e, "Unhandled Exception!"); } \ } Catch(e) { TEST_ASSERT_EQUAL_HEX32_MESSAGE(CEXCEPTION_NONE, e, "Unhandled Exception!"); } \
} \ } \
CMock_Destroy(); \ CMock_Destroy(); \
if (TEST_PROTECT() && !TEST_IS_IGNORED) \ if (TEST_PROTECT() && !TEST_IS_IGNORED) \
{ \ { \
tearDown(); \ tearDown(); \
} \ } \
UnityConcludeTest(); \ UnityConcludeTest(); \
} }
//=======Automagically Detected Files To Include===== //=======Automagically Detected Files To Include=====
#include "unity.h" #include "unity.h"
#include "cmock.h" #include "cmock.h"
#include "one.h" #include "one.h"
#include "two.h" #include "two.h"
#include <setjmp.h> #include <setjmp.h>
#include <stdio.h> #include <stdio.h>
#include "CException.h" #include "CException.h"
#include "Mockstanky.h" #include "funky.h"
#include <setjmp.h>
int GlobalExpectCount; #include "Mockstanky.h"
int GlobalVerifyOrder;
char* GlobalOrderError; int GlobalExpectCount;
int GlobalVerifyOrder;
//=======External Functions This Runner Calls===== char* GlobalOrderError;
extern void setUp(void);
extern void tearDown(void); //=======External Functions This Runner Calls=====
extern void test_TheFirstThingToTest(void); extern void setUp(void);
extern void test_TheSecondThingToTest(void); extern void tearDown(void);
extern void test_TheFirstThingToTest(void);
extern void test_TheSecondThingToTest(void);
//=======Mock Management=====
static void CMock_Init(void)
{ //=======Mock Management=====
GlobalExpectCount = 0; static void CMock_Init(void)
GlobalVerifyOrder = 0; {
GlobalOrderError = NULL; GlobalExpectCount = 0;
Mockstanky_Init(); GlobalVerifyOrder = 0;
} GlobalOrderError = NULL;
static void CMock_Verify(void) Mockstanky_Init();
{ }
Mockstanky_Verify(); static void CMock_Verify(void)
} {
static void CMock_Destroy(void) Mockstanky_Verify();
{ }
Mockstanky_Destroy(); static void CMock_Destroy(void)
} {
Mockstanky_Destroy();
//=======Test Reset Option===== }
void resetTest()
{ //=======Test Reset Option=====
CMock_Verify(); void resetTest()
CMock_Destroy(); {
tearDown(); CMock_Verify();
CMock_Init(); CMock_Destroy();
setUp(); tearDown();
} CMock_Init();
setUp();
}
//=======MAIN=====
int main(void)
{ //=======MAIN=====
Unity.TestFile = "test/testdata/mocksample.c"; int main(void)
UnityBegin(); {
RUN_TEST(test_TheFirstThingToTest, 21); Unity.TestFile = "test/testdata/mocksample.c";
RUN_TEST(test_TheSecondThingToTest, 43); UnityBegin();
RUN_TEST(test_TheFirstThingToTest, 21);
return (UnityEnd()); RUN_TEST(test_TheSecondThingToTest, 43);
}
return (UnityEnd());
}
/* AUTOGENERATED FILE. DO NOT EDIT. */ /* AUTOGENERATED FILE. DO NOT EDIT. */
//=======Test Runner Used To Run Each Test Below===== //=======Test Runner Used To Run Each Test Below=====
#define RUN_TEST(TestFunc, TestLineNum) \ #define RUN_TEST(TestFunc, TestLineNum) \
{ \ { \
Unity.CurrentTestName = #TestFunc; \ Unity.CurrentTestName = #TestFunc; \
Unity.CurrentTestLineNumber = TestLineNum; \ Unity.CurrentTestLineNumber = TestLineNum; \
Unity.NumberOfTests++; \ Unity.NumberOfTests++; \
if (TEST_PROTECT()) \ if (TEST_PROTECT()) \
{ \ { \
CMock_Init(); \ CMock_Init(); \
setUp(); \ setUp(); \
TestFunc(); \ TestFunc(); \
CMock_Verify(); \ CMock_Verify(); \
} \ } \
CMock_Destroy(); \ CMock_Destroy(); \
if (TEST_PROTECT() && !TEST_IS_IGNORED) \ if (TEST_PROTECT() && !TEST_IS_IGNORED) \
{ \ { \
tearDown(); \ tearDown(); \
} \ } \
UnityConcludeTest(); \ UnityConcludeTest(); \
} }
//=======Automagically Detected Files To Include===== //=======Automagically Detected Files To Include=====
#include "unity.h" #include "unity.h"
#include "cmock.h" #include "cmock.h"
#include <setjmp.h> #include <setjmp.h>
#include <stdio.h> #include <stdio.h>
#include "Mockstanky.h" #include "funky.h"
#include <setjmp.h>
//=======External Functions This Runner Calls===== #include "Mockstanky.h"
extern void setUp(void);
extern void tearDown(void); //=======External Functions This Runner Calls=====
extern void test_TheFirstThingToTest(void); extern void setUp(void);
extern void test_TheSecondThingToTest(void); extern void tearDown(void);
extern void test_TheFirstThingToTest(void);
extern void test_TheSecondThingToTest(void);
//=======Mock Management=====
static void CMock_Init(void)
{ //=======Mock Management=====
Mockstanky_Init(); static void CMock_Init(void)
} {
static void CMock_Verify(void) Mockstanky_Init();
{ }
Mockstanky_Verify(); static void CMock_Verify(void)
} {
static void CMock_Destroy(void) Mockstanky_Verify();
{ }
Mockstanky_Destroy(); static void CMock_Destroy(void)
} {
Mockstanky_Destroy();
//=======Suite Setup===== }
static int suite_setup(void)
{ //=======Suite Setup=====
a_custom_setup(); static int suite_setup(void)
} {
a_custom_setup();
//=======Suite Teardown===== }
static int suite_teardown(int num_failures)
{ //=======Suite Teardown=====
a_custom_teardown(); static int suite_teardown(int num_failures)
} {
a_custom_teardown();
//=======Test Reset Option===== }
void resetTest()
{ //=======Test Reset Option=====
CMock_Verify(); void resetTest()
CMock_Destroy(); {
tearDown(); CMock_Verify();
CMock_Init(); CMock_Destroy();
setUp(); tearDown();
} CMock_Init();
setUp();
}
//=======MAIN=====
int main(void)
{ //=======MAIN=====
suite_setup(); int main(void)
Unity.TestFile = "test/testdata/mocksample.c"; {
UnityBegin(); suite_setup();
RUN_TEST(test_TheFirstThingToTest, 21); Unity.TestFile = "test/testdata/mocksample.c";
RUN_TEST(test_TheSecondThingToTest, 43); UnityBegin();
RUN_TEST(test_TheFirstThingToTest, 21);
return suite_teardown(UnityEnd()); RUN_TEST(test_TheSecondThingToTest, 43);
}
return suite_teardown(UnityEnd());
}
/* AUTOGENERATED FILE. DO NOT EDIT. */ /* AUTOGENERATED FILE. DO NOT EDIT. */
//=======Test Runner Used To Run Each Test Below===== //=======Test Runner Used To Run Each Test Below=====
#define RUN_TEST(TestFunc, TestLineNum) \ #define RUN_TEST(TestFunc, TestLineNum) \
{ \ { \
Unity.CurrentTestName = #TestFunc; \ Unity.CurrentTestName = #TestFunc; \
Unity.CurrentTestLineNumber = TestLineNum; \ Unity.CurrentTestLineNumber = TestLineNum; \
Unity.NumberOfTests++; \ Unity.NumberOfTests++; \
if (TEST_PROTECT()) \ if (TEST_PROTECT()) \
{ \ { \
CEXCEPTION_T e; \ CEXCEPTION_T e; \
Try { \ Try { \
CMock_Init(); \ CMock_Init(); \
setUp(); \ setUp(); \
TestFunc(); \ TestFunc(); \
CMock_Verify(); \ CMock_Verify(); \
} Catch(e) { TEST_ASSERT_EQUAL_HEX32_MESSAGE(CEXCEPTION_NONE, e, "Unhandled Exception!"); } \ } Catch(e) { TEST_ASSERT_EQUAL_HEX32_MESSAGE(CEXCEPTION_NONE, e, "Unhandled Exception!"); } \
} \ } \
CMock_Destroy(); \ CMock_Destroy(); \
if (TEST_PROTECT() && !TEST_IS_IGNORED) \ if (TEST_PROTECT() && !TEST_IS_IGNORED) \
{ \ { \
tearDown(); \ tearDown(); \
} \ } \
UnityConcludeTest(); \ UnityConcludeTest(); \
} }
//=======Automagically Detected Files To Include===== //=======Automagically Detected Files To Include=====
#include "unity.h" #include "unity.h"
#include "cmock.h" #include "cmock.h"
#include "two.h" #include "two.h"
#include "three.h" #include "three.h"
#include <four.h> #include <four.h>
#include <setjmp.h> #include <setjmp.h>
#include <stdio.h> #include <stdio.h>
#include "CException.h" #include "CException.h"
#include "Mockstanky.h" #include "funky.h"
#include <setjmp.h>
//=======External Functions This Runner Calls===== #include "Mockstanky.h"
extern void setUp(void);
extern void tearDown(void); //=======External Functions This Runner Calls=====
extern void test_TheFirstThingToTest(void); extern void setUp(void);
extern void test_TheSecondThingToTest(void); extern void tearDown(void);
extern void test_TheFirstThingToTest(void);
extern void test_TheSecondThingToTest(void);
//=======Mock Management=====
static void CMock_Init(void)
{ //=======Mock Management=====
Mockstanky_Init(); static void CMock_Init(void)
} {
static void CMock_Verify(void) Mockstanky_Init();
{ }
Mockstanky_Verify(); static void CMock_Verify(void)
} {
static void CMock_Destroy(void) Mockstanky_Verify();
{ }
Mockstanky_Destroy(); static void CMock_Destroy(void)
} {
Mockstanky_Destroy();
//=======Suite Setup===== }
static int suite_setup(void)
{ //=======Suite Setup=====
a_yaml_setup(); static int suite_setup(void)
} {
a_yaml_setup();
//=======Test Reset Option===== }
void resetTest()
{ //=======Test Reset Option=====
CMock_Verify(); void resetTest()
CMock_Destroy(); {
tearDown(); CMock_Verify();
CMock_Init(); CMock_Destroy();
setUp(); tearDown();
} CMock_Init();
setUp();
}
//=======MAIN=====
int main(void)
{ //=======MAIN=====
suite_setup(); int main(void)
Unity.TestFile = "test/testdata/mocksample.c"; {
UnityBegin(); suite_setup();
RUN_TEST(test_TheFirstThingToTest, 21); Unity.TestFile = "test/testdata/mocksample.c";
RUN_TEST(test_TheSecondThingToTest, 43); UnityBegin();
RUN_TEST(test_TheFirstThingToTest, 21);
return (UnityEnd()); RUN_TEST(test_TheSecondThingToTest, 43);
}
return (UnityEnd());
}
/* AUTOGENERATED FILE. DO NOT EDIT. */ /* AUTOGENERATED FILE. DO NOT EDIT. */
//=======Test Runner Used To Run Each Test Below===== //=======Test Runner Used To Run Each Test Below=====
#define RUN_TEST(TestFunc, TestLineNum) \ #define RUN_TEST(TestFunc, TestLineNum) \
{ \ { \
Unity.CurrentTestName = #TestFunc; \ Unity.CurrentTestName = #TestFunc; \
Unity.CurrentTestLineNumber = TestLineNum; \ Unity.CurrentTestLineNumber = TestLineNum; \
Unity.NumberOfTests++; \ Unity.NumberOfTests++; \
if (TEST_PROTECT()) \ if (TEST_PROTECT()) \
{ \ { \
CEXCEPTION_T e; \ CEXCEPTION_T e; \
Try { \ Try { \
setUp(); \ setUp(); \
TestFunc(); \ TestFunc(); \
} Catch(e) { TEST_ASSERT_EQUAL_HEX32_MESSAGE(CEXCEPTION_NONE, e, "Unhandled Exception!"); } \ } Catch(e) { TEST_ASSERT_EQUAL_HEX32_MESSAGE(CEXCEPTION_NONE, e, "Unhandled Exception!"); } \
} \ } \
if (TEST_PROTECT() && !TEST_IS_IGNORED) \ if (TEST_PROTECT() && !TEST_IS_IGNORED) \
{ \ { \
tearDown(); \ tearDown(); \
} \ } \
UnityConcludeTest(); \ UnityConcludeTest(); \
} }
//=======Automagically Detected Files To Include===== //=======Automagically Detected Files To Include=====
#include "unity.h" #include "unity.h"
#include "one.h" #include "one.h"
#include "two.h" #include "two.h"
#include <setjmp.h> #include <setjmp.h>
#include <stdio.h> #include <stdio.h>
#include "CException.h" #include "CException.h"
#include "funky.h"
int GlobalExpectCount; #include "stanky.h"
int GlobalVerifyOrder; #include <setjmp.h>
char* GlobalOrderError;
int GlobalExpectCount;
//=======External Functions This Runner Calls===== int GlobalVerifyOrder;
extern void setUp(void); char* GlobalOrderError;
extern void tearDown(void);
extern void test_TheFirstThingToTest(void); //=======External Functions This Runner Calls=====
extern void test_TheSecondThingToTest(void); extern void setUp(void);
extern void tearDown(void);
extern void test_TheFirstThingToTest(void);
//=======Test Reset Option===== extern void test_TheSecondThingToTest(void);
void resetTest()
{
tearDown(); //=======Test Reset Option=====
setUp(); void resetTest()
} {
tearDown();
setUp();
//=======MAIN===== }
int main(void)
{
Unity.TestFile = "test/testdata/testsample.c"; //=======MAIN=====
UnityBegin(); int main(void)
RUN_TEST(test_TheFirstThingToTest, 21); {
RUN_TEST(test_TheSecondThingToTest, 43); Unity.TestFile = "test/testdata/testsample.c";
UnityBegin();
return (UnityEnd()); RUN_TEST(test_TheFirstThingToTest, 21);
} RUN_TEST(test_TheSecondThingToTest, 43);
return (UnityEnd());
}
/* AUTOGENERATED FILE. DO NOT EDIT. */ /* AUTOGENERATED FILE. DO NOT EDIT. */
//=======Test Runner Used To Run Each Test Below===== //=======Test Runner Used To Run Each Test Below=====
#define RUN_TEST(TestFunc, TestLineNum) \ #define RUN_TEST(TestFunc, TestLineNum) \
{ \ { \
Unity.CurrentTestName = #TestFunc; \ Unity.CurrentTestName = #TestFunc; \
Unity.CurrentTestLineNumber = TestLineNum; \ Unity.CurrentTestLineNumber = TestLineNum; \
Unity.NumberOfTests++; \ Unity.NumberOfTests++; \
if (TEST_PROTECT()) \ if (TEST_PROTECT()) \
{ \ { \
setUp(); \ setUp(); \
TestFunc(); \ TestFunc(); \
} \ } \
if (TEST_PROTECT() && !TEST_IS_IGNORED) \ if (TEST_PROTECT() && !TEST_IS_IGNORED) \
{ \ { \
tearDown(); \ tearDown(); \
} \ } \
UnityConcludeTest(); \ UnityConcludeTest(); \
} }
//=======Automagically Detected Files To Include===== //=======Automagically Detected Files To Include=====
#include "unity.h" #include "unity.h"
#include <setjmp.h> #include <setjmp.h>
#include <stdio.h> #include <stdio.h>
#include "funky.h"
//=======External Functions This Runner Calls===== #include "stanky.h"
extern void setUp(void); #include <setjmp.h>
extern void tearDown(void);
extern void test_TheFirstThingToTest(void); //=======External Functions This Runner Calls=====
extern void test_TheSecondThingToTest(void); extern void setUp(void);
extern void tearDown(void);
extern void test_TheFirstThingToTest(void);
//=======Suite Setup===== extern void test_TheSecondThingToTest(void);
static int suite_setup(void)
{
a_custom_setup(); //=======Suite Setup=====
} static int suite_setup(void)
{
//=======Suite Teardown===== a_custom_setup();
static int suite_teardown(int num_failures) }
{
a_custom_teardown(); //=======Suite Teardown=====
} static int suite_teardown(int num_failures)
{
//=======Test Reset Option===== a_custom_teardown();
void resetTest() }
{
tearDown(); //=======Test Reset Option=====
setUp(); void resetTest()
} {
tearDown();
setUp();
//=======MAIN===== }
int main(void)
{
suite_setup(); //=======MAIN=====
Unity.TestFile = "test/testdata/testsample.c"; int main(void)
UnityBegin(); {
RUN_TEST(test_TheFirstThingToTest, 21); suite_setup();
RUN_TEST(test_TheSecondThingToTest, 43); Unity.TestFile = "test/testdata/testsample.c";
UnityBegin();
return suite_teardown(UnityEnd()); RUN_TEST(test_TheFirstThingToTest, 21);
} RUN_TEST(test_TheSecondThingToTest, 43);
return suite_teardown(UnityEnd());
}
/* AUTOGENERATED FILE. DO NOT EDIT. */ /* AUTOGENERATED FILE. DO NOT EDIT. */
//=======Test Runner Used To Run Each Test Below===== //=======Test Runner Used To Run Each Test Below=====
#define RUN_TEST_NO_ARGS #define RUN_TEST_NO_ARGS
#define RUN_TEST(TestFunc, TestLineNum, ...) \ #define RUN_TEST(TestFunc, TestLineNum, ...) \
{ \ { \
Unity.CurrentTestName = #TestFunc "(" #__VA_ARGS__ ")"; \ Unity.CurrentTestName = #TestFunc "(" #__VA_ARGS__ ")"; \
Unity.CurrentTestLineNumber = TestLineNum; \ Unity.CurrentTestLineNumber = TestLineNum; \
Unity.NumberOfTests++; \ Unity.NumberOfTests++; \
if (TEST_PROTECT()) \ if (TEST_PROTECT()) \
{ \ { \
setUp(); \ setUp(); \
TestFunc(__VA_ARGS__); \ TestFunc(__VA_ARGS__); \
} \ } \
if (TEST_PROTECT() && !TEST_IS_IGNORED) \ if (TEST_PROTECT() && !TEST_IS_IGNORED) \
{ \ { \
tearDown(); \ tearDown(); \
} \ } \
UnityConcludeTest(); \ UnityConcludeTest(); \
} }
//=======Automagically Detected Files To Include===== //=======Automagically Detected Files To Include=====
#include "unity.h" #include "unity.h"
#include <setjmp.h> #include <setjmp.h>
#include <stdio.h> #include <stdio.h>
#include "funky.h"
//=======External Functions This Runner Calls===== #include "stanky.h"
extern void setUp(void); #include <setjmp.h>
extern void tearDown(void);
extern void test_TheFirstThingToTest(void); //=======External Functions This Runner Calls=====
extern void test_TheSecondThingToTest(void); extern void setUp(void);
extern void tearDown(void);
extern void test_TheFirstThingToTest(void);
//=======Test Reset Option===== extern void test_TheSecondThingToTest(void);
void resetTest()
{
tearDown(); //=======Test Reset Option=====
setUp(); void resetTest()
} {
tearDown();
setUp();
//=======MAIN===== }
int main(void)
{
Unity.TestFile = "test/testdata/testsample.c"; //=======MAIN=====
UnityBegin(); int main(void)
RUN_TEST(test_TheFirstThingToTest, 21, RUN_TEST_NO_ARGS); {
RUN_TEST(test_TheSecondThingToTest, 43, RUN_TEST_NO_ARGS); Unity.TestFile = "test/testdata/testsample.c";
UnityBegin();
return (UnityEnd()); RUN_TEST(test_TheFirstThingToTest, 21, RUN_TEST_NO_ARGS);
} RUN_TEST(test_TheSecondThingToTest, 43, RUN_TEST_NO_ARGS);
return (UnityEnd());
}
/* AUTOGENERATED FILE. DO NOT EDIT. */ /* AUTOGENERATED FILE. DO NOT EDIT. */
//=======Test Runner Used To Run Each Test Below===== //=======Test Runner Used To Run Each Test Below=====
#define RUN_TEST(TestFunc, TestLineNum) \ #define RUN_TEST(TestFunc, TestLineNum) \
{ \ { \
Unity.CurrentTestName = #TestFunc; \ Unity.CurrentTestName = #TestFunc; \
Unity.CurrentTestLineNumber = TestLineNum; \ Unity.CurrentTestLineNumber = TestLineNum; \
Unity.NumberOfTests++; \ Unity.NumberOfTests++; \
if (TEST_PROTECT()) \ if (TEST_PROTECT()) \
{ \ { \
CEXCEPTION_T e; \ CEXCEPTION_T e; \
Try { \ Try { \
setUp(); \ setUp(); \
TestFunc(); \ TestFunc(); \
} Catch(e) { TEST_ASSERT_EQUAL_HEX32_MESSAGE(CEXCEPTION_NONE, e, "Unhandled Exception!"); } \ } Catch(e) { TEST_ASSERT_EQUAL_HEX32_MESSAGE(CEXCEPTION_NONE, e, "Unhandled Exception!"); } \
} \ } \
if (TEST_PROTECT() && !TEST_IS_IGNORED) \ if (TEST_PROTECT() && !TEST_IS_IGNORED) \
{ \ { \
tearDown(); \ tearDown(); \
} \ } \
UnityConcludeTest(); \ UnityConcludeTest(); \
} }
//=======Automagically Detected Files To Include===== //=======Automagically Detected Files To Include=====
#include "unity.h" #include "unity.h"
#include "one.h" #include "one.h"
#include "two.h" #include "two.h"
#include <setjmp.h> #include <setjmp.h>
#include <stdio.h> #include <stdio.h>
#include "CException.h" #include "CException.h"
#include "funky.h"
int GlobalExpectCount; #include "stanky.h"
int GlobalVerifyOrder; #include <setjmp.h>
char* GlobalOrderError;
int GlobalExpectCount;
//=======External Functions This Runner Calls===== int GlobalVerifyOrder;
extern void setUp(void); char* GlobalOrderError;
extern void tearDown(void);
extern void test_TheFirstThingToTest(void); //=======External Functions This Runner Calls=====
extern void test_TheSecondThingToTest(void); extern void setUp(void);
extern void tearDown(void);
extern void test_TheFirstThingToTest(void);
//=======Test Reset Option===== extern void test_TheSecondThingToTest(void);
void resetTest()
{
tearDown(); //=======Test Reset Option=====
setUp(); void resetTest()
} {
tearDown();
setUp();
//=======MAIN===== }
int main(void)
{
Unity.TestFile = "test/testdata/testsample.c"; //=======MAIN=====
UnityBegin(); int main(void)
RUN_TEST(test_TheFirstThingToTest, 21); {
RUN_TEST(test_TheSecondThingToTest, 43); Unity.TestFile = "test/testdata/testsample.c";
UnityBegin();
return (UnityEnd()); RUN_TEST(test_TheFirstThingToTest, 21);
} RUN_TEST(test_TheSecondThingToTest, 43);
return (UnityEnd());
}
/* AUTOGENERATED FILE. DO NOT EDIT. */ /* AUTOGENERATED FILE. DO NOT EDIT. */
//=======Test Runner Used To Run Each Test Below===== //=======Test Runner Used To Run Each Test Below=====
#define RUN_TEST(TestFunc, TestLineNum) \ #define RUN_TEST(TestFunc, TestLineNum) \
{ \ { \
Unity.CurrentTestName = #TestFunc; \ Unity.CurrentTestName = #TestFunc; \
Unity.CurrentTestLineNumber = TestLineNum; \ Unity.CurrentTestLineNumber = TestLineNum; \
Unity.NumberOfTests++; \ Unity.NumberOfTests++; \
if (TEST_PROTECT()) \ if (TEST_PROTECT()) \
{ \ { \
setUp(); \ setUp(); \
TestFunc(); \ TestFunc(); \
} \ } \
if (TEST_PROTECT() && !TEST_IS_IGNORED) \ if (TEST_PROTECT() && !TEST_IS_IGNORED) \
{ \ { \
tearDown(); \ tearDown(); \
} \ } \
UnityConcludeTest(); \ UnityConcludeTest(); \
} }
//=======Automagically Detected Files To Include===== //=======Automagically Detected Files To Include=====
#include "unity.h" #include "unity.h"
#include <setjmp.h> #include <setjmp.h>
#include <stdio.h> #include <stdio.h>
#include "funky.h"
//=======External Functions This Runner Calls===== #include "stanky.h"
extern void setUp(void); #include <setjmp.h>
extern void tearDown(void);
extern void test_TheFirstThingToTest(void); //=======External Functions This Runner Calls=====
extern void test_TheSecondThingToTest(void); extern void setUp(void);
extern void tearDown(void);
extern void test_TheFirstThingToTest(void);
//=======Suite Setup===== extern void test_TheSecondThingToTest(void);
static int suite_setup(void)
{
a_custom_setup(); //=======Suite Setup=====
} static int suite_setup(void)
{
//=======Suite Teardown===== a_custom_setup();
static int suite_teardown(int num_failures) }
{
a_custom_teardown(); //=======Suite Teardown=====
} static int suite_teardown(int num_failures)
{
//=======Test Reset Option===== a_custom_teardown();
void resetTest() }
{
tearDown(); //=======Test Reset Option=====
setUp(); void resetTest()
} {
tearDown();
setUp();
//=======MAIN===== }
int main(void)
{
suite_setup(); //=======MAIN=====
Unity.TestFile = "test/testdata/testsample.c"; int main(void)
UnityBegin(); {
RUN_TEST(test_TheFirstThingToTest, 21); suite_setup();
RUN_TEST(test_TheSecondThingToTest, 43); Unity.TestFile = "test/testdata/testsample.c";
UnityBegin();
return suite_teardown(UnityEnd()); RUN_TEST(test_TheFirstThingToTest, 21);
} RUN_TEST(test_TheSecondThingToTest, 43);
return suite_teardown(UnityEnd());
}
/* AUTOGENERATED FILE. DO NOT EDIT. */ /* AUTOGENERATED FILE. DO NOT EDIT. */
//=======Test Runner Used To Run Each Test Below===== //=======Test Runner Used To Run Each Test Below=====
#define RUN_TEST(TestFunc, TestLineNum) \ #define RUN_TEST(TestFunc, TestLineNum) \
{ \ { \
Unity.CurrentTestName = #TestFunc; \ Unity.CurrentTestName = #TestFunc; \
Unity.CurrentTestLineNumber = TestLineNum; \ Unity.CurrentTestLineNumber = TestLineNum; \
Unity.NumberOfTests++; \ Unity.NumberOfTests++; \
if (TEST_PROTECT()) \ if (TEST_PROTECT()) \
{ \ { \
CEXCEPTION_T e; \ CEXCEPTION_T e; \
Try { \ Try { \
setUp(); \ setUp(); \
TestFunc(); \ TestFunc(); \
} Catch(e) { TEST_ASSERT_EQUAL_HEX32_MESSAGE(CEXCEPTION_NONE, e, "Unhandled Exception!"); } \ } Catch(e) { TEST_ASSERT_EQUAL_HEX32_MESSAGE(CEXCEPTION_NONE, e, "Unhandled Exception!"); } \
} \ } \
if (TEST_PROTECT() && !TEST_IS_IGNORED) \ if (TEST_PROTECT() && !TEST_IS_IGNORED) \
{ \ { \
tearDown(); \ tearDown(); \
} \ } \
UnityConcludeTest(); \ UnityConcludeTest(); \
} }
//=======Automagically Detected Files To Include===== //=======Automagically Detected Files To Include=====
#include "unity.h" #include "unity.h"
#include "two.h" #include "two.h"
#include "three.h" #include "three.h"
#include <four.h> #include <four.h>
#include <setjmp.h> #include <setjmp.h>
#include <stdio.h> #include <stdio.h>
#include "CException.h" #include "CException.h"
#include "funky.h"
//=======External Functions This Runner Calls===== #include "stanky.h"
extern void setUp(void); #include <setjmp.h>
extern void tearDown(void);
extern void test_TheFirstThingToTest(void); //=======External Functions This Runner Calls=====
extern void test_TheSecondThingToTest(void); extern void setUp(void);
extern void tearDown(void);
extern void test_TheFirstThingToTest(void);
//=======Suite Setup===== extern void test_TheSecondThingToTest(void);
static int suite_setup(void)
{
a_yaml_setup(); //=======Suite Setup=====
} static int suite_setup(void)
{
//=======Test Reset Option===== a_yaml_setup();
void resetTest() }
{
tearDown(); //=======Test Reset Option=====
setUp(); void resetTest()
} {
tearDown();
setUp();
//=======MAIN===== }
int main(void)
{
suite_setup(); //=======MAIN=====
Unity.TestFile = "test/testdata/testsample.c"; int main(void)
UnityBegin(); {
RUN_TEST(test_TheFirstThingToTest, 21); suite_setup();
RUN_TEST(test_TheSecondThingToTest, 43); Unity.TestFile = "test/testdata/testsample.c";
UnityBegin();
return (UnityEnd()); RUN_TEST(test_TheFirstThingToTest, 21);
} RUN_TEST(test_TheSecondThingToTest, 43);
return (UnityEnd());
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册