mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-24 17:01:35 +01:00
Change comments style in unity and test runner to compile with std=c89
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/* 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) \
|
||||
{ \
|
||||
Unity.CurrentTestName = #TestFunc; \
|
||||
@@ -21,7 +21,7 @@
|
||||
UnityConcludeTest(); \
|
||||
}
|
||||
|
||||
//=======Automagically Detected Files To Include=====
|
||||
/*=======Automagically Detected Files To Include=====*/
|
||||
#include "unity.h"
|
||||
#include <setjmp.h>
|
||||
#include <stdio.h>
|
||||
@@ -30,7 +30,7 @@
|
||||
#include "stanky.h"
|
||||
#include <setjmp.h>
|
||||
|
||||
//=======External Functions This Runner Calls=====
|
||||
/*=======External Functions This Runner Calls=====*/
|
||||
extern void setUp(void);
|
||||
extern void tearDown(void);
|
||||
extern void test_TheFirstThingToTest(void);
|
||||
@@ -39,7 +39,7 @@ extern void test_TheThirdThingToTest(void);
|
||||
extern void test_TheFourthThingToTest(void);
|
||||
|
||||
|
||||
//=======Test Reset Option=====
|
||||
/*=======Test Reset Option=====*/
|
||||
void resetTest(void);
|
||||
void resetTest(void)
|
||||
{
|
||||
@@ -48,7 +48,7 @@ void resetTest(void)
|
||||
}
|
||||
|
||||
|
||||
//=======MAIN=====
|
||||
/*=======MAIN=====*/
|
||||
int main(void)
|
||||
{
|
||||
UnityBegin("testdata/testsample.c");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* 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) \
|
||||
{ \
|
||||
Unity.CurrentTestName = #TestFunc; \
|
||||
@@ -18,7 +18,7 @@
|
||||
UnityConcludeTest(); \
|
||||
}
|
||||
|
||||
//=======Automagically Detected Files To Include=====
|
||||
/*=======Automagically Detected Files To Include=====*/
|
||||
#include "unity.h"
|
||||
#include <setjmp.h>
|
||||
#include <stdio.h>
|
||||
@@ -26,7 +26,7 @@
|
||||
#include "stanky.h"
|
||||
#include <setjmp.h>
|
||||
|
||||
//=======External Functions This Runner Calls=====
|
||||
/*=======External Functions This Runner Calls=====*/
|
||||
extern void setUp(void);
|
||||
extern void tearDown(void);
|
||||
extern void test_TheFirstThingToTest(void);
|
||||
@@ -35,7 +35,7 @@ extern void test_TheThirdThingToTest(void);
|
||||
extern void test_TheFourthThingToTest(void);
|
||||
|
||||
|
||||
//=======Test Reset Option=====
|
||||
/*=======Test Reset Option=====*/
|
||||
void resetTest(void);
|
||||
void resetTest(void)
|
||||
{
|
||||
@@ -44,7 +44,7 @@ void resetTest(void)
|
||||
}
|
||||
|
||||
|
||||
//=======MAIN=====
|
||||
/*=======MAIN=====*/
|
||||
int main(void)
|
||||
{
|
||||
UnityBegin("testdata/testsample.c");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* 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) \
|
||||
{ \
|
||||
Unity.CurrentTestName = #TestFunc; \
|
||||
@@ -18,13 +18,13 @@
|
||||
UnityConcludeTest(); \
|
||||
}
|
||||
|
||||
//=======Automagically Detected Files To Include=====
|
||||
/*=======Automagically Detected Files To Include=====*/
|
||||
#include "unity.h"
|
||||
#include <setjmp.h>
|
||||
#include <stdio.h>
|
||||
#include "testsample_head1.h"
|
||||
|
||||
//=======External Functions This Runner Calls=====
|
||||
/*=======External Functions This Runner Calls=====*/
|
||||
extern void setUp(void);
|
||||
extern void tearDown(void);
|
||||
extern void test_TheFirstThingToTest(void);
|
||||
@@ -33,7 +33,7 @@ extern void test_TheThirdThingToTest(void);
|
||||
extern void test_TheFourthThingToTest(void);
|
||||
|
||||
|
||||
//=======Test Reset Option=====
|
||||
/*=======Test Reset Option=====*/
|
||||
void resetTest(void);
|
||||
void resetTest(void)
|
||||
{
|
||||
@@ -42,7 +42,7 @@ void resetTest(void)
|
||||
}
|
||||
|
||||
|
||||
//=======MAIN=====
|
||||
/*=======MAIN=====*/
|
||||
int main(void)
|
||||
{
|
||||
UnityBegin("testdata/testsample.c");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* 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) \
|
||||
{ \
|
||||
Unity.CurrentTestName = #TestFunc; \
|
||||
@@ -25,7 +25,7 @@
|
||||
UnityConcludeTest(); \
|
||||
}
|
||||
|
||||
//=======Automagically Detected Files To Include=====
|
||||
/*=======Automagically Detected Files To Include=====*/
|
||||
#include "unity.h"
|
||||
#include "cmock.h"
|
||||
#include <setjmp.h>
|
||||
@@ -35,14 +35,14 @@
|
||||
#include <setjmp.h>
|
||||
#include "Mockstanky.h"
|
||||
|
||||
//=======External Functions This Runner Calls=====
|
||||
/*=======External Functions This Runner Calls=====*/
|
||||
extern void setUp(void);
|
||||
extern void tearDown(void);
|
||||
extern void test_TheFirstThingToTest(void);
|
||||
extern void test_TheSecondThingToTest(void);
|
||||
|
||||
|
||||
//=======Mock Management=====
|
||||
/*=======Mock Management=====*/
|
||||
static void CMock_Init(void)
|
||||
{
|
||||
Mockstanky_Init();
|
||||
@@ -56,7 +56,7 @@ static void CMock_Destroy(void)
|
||||
Mockstanky_Destroy();
|
||||
}
|
||||
|
||||
//=======Test Reset Option=====
|
||||
/*=======Test Reset Option=====*/
|
||||
void resetTest(void);
|
||||
void resetTest(void)
|
||||
{
|
||||
@@ -68,7 +68,7 @@ void resetTest(void)
|
||||
}
|
||||
|
||||
|
||||
//=======MAIN=====
|
||||
/*=======MAIN=====*/
|
||||
int main(void)
|
||||
{
|
||||
UnityBegin("testdata/mocksample.c");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* 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) \
|
||||
{ \
|
||||
Unity.CurrentTestName = #TestFunc; \
|
||||
@@ -22,7 +22,7 @@
|
||||
UnityConcludeTest(); \
|
||||
}
|
||||
|
||||
//=======Automagically Detected Files To Include=====
|
||||
/*=======Automagically Detected Files To Include=====*/
|
||||
#include "unity.h"
|
||||
#include "cmock.h"
|
||||
#include <setjmp.h>
|
||||
@@ -31,14 +31,14 @@
|
||||
#include <setjmp.h>
|
||||
#include "Mockstanky.h"
|
||||
|
||||
//=======External Functions This Runner Calls=====
|
||||
/*=======External Functions This Runner Calls=====*/
|
||||
extern void setUp(void);
|
||||
extern void tearDown(void);
|
||||
extern void test_TheFirstThingToTest(void);
|
||||
extern void test_TheSecondThingToTest(void);
|
||||
|
||||
|
||||
//=======Mock Management=====
|
||||
/*=======Mock Management=====*/
|
||||
static void CMock_Init(void)
|
||||
{
|
||||
Mockstanky_Init();
|
||||
@@ -52,7 +52,7 @@ static void CMock_Destroy(void)
|
||||
Mockstanky_Destroy();
|
||||
}
|
||||
|
||||
//=======Test Reset Option=====
|
||||
/*=======Test Reset Option=====*/
|
||||
void resetTest(void);
|
||||
void resetTest(void)
|
||||
{
|
||||
@@ -64,7 +64,7 @@ void resetTest(void)
|
||||
}
|
||||
|
||||
|
||||
//=======MAIN=====
|
||||
/*=======MAIN=====*/
|
||||
int main(void)
|
||||
{
|
||||
UnityBegin("testdata/mocksample.c");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* 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) \
|
||||
{ \
|
||||
Unity.CurrentTestName = #TestFunc; \
|
||||
@@ -22,7 +22,7 @@
|
||||
UnityConcludeTest(); \
|
||||
}
|
||||
|
||||
//=======Automagically Detected Files To Include=====
|
||||
/*=======Automagically Detected Files To Include=====*/
|
||||
#include "unity.h"
|
||||
#include "cmock.h"
|
||||
#include <setjmp.h>
|
||||
@@ -30,14 +30,14 @@
|
||||
#include "testsample_mock_head1.h"
|
||||
#include "Mockstanky.h"
|
||||
|
||||
//=======External Functions This Runner Calls=====
|
||||
/*=======External Functions This Runner Calls=====*/
|
||||
extern void setUp(void);
|
||||
extern void tearDown(void);
|
||||
extern void test_TheFirstThingToTest(void);
|
||||
extern void test_TheSecondThingToTest(void);
|
||||
|
||||
|
||||
//=======Mock Management=====
|
||||
/*=======Mock Management=====*/
|
||||
static void CMock_Init(void)
|
||||
{
|
||||
Mockstanky_Init();
|
||||
@@ -51,7 +51,7 @@ static void CMock_Destroy(void)
|
||||
Mockstanky_Destroy();
|
||||
}
|
||||
|
||||
//=======Test Reset Option=====
|
||||
/*=======Test Reset Option=====*/
|
||||
void resetTest(void);
|
||||
void resetTest(void)
|
||||
{
|
||||
@@ -63,7 +63,7 @@ void resetTest(void)
|
||||
}
|
||||
|
||||
|
||||
//=======MAIN=====
|
||||
/*=======MAIN=====*/
|
||||
int main(void)
|
||||
{
|
||||
UnityBegin("testdata/mocksample.c");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* 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) \
|
||||
{ \
|
||||
Unity.CurrentTestName = #TestFunc; \
|
||||
@@ -25,7 +25,7 @@
|
||||
UnityConcludeTest(); \
|
||||
}
|
||||
|
||||
//=======Automagically Detected Files To Include=====
|
||||
/*=======Automagically Detected Files To Include=====*/
|
||||
#include "unity.h"
|
||||
#include "cmock.h"
|
||||
#include <setjmp.h>
|
||||
@@ -41,14 +41,14 @@ int GlobalExpectCount;
|
||||
int GlobalVerifyOrder;
|
||||
char* GlobalOrderError;
|
||||
|
||||
//=======External Functions This Runner Calls=====
|
||||
/*=======External Functions This Runner Calls=====*/
|
||||
extern void setUp(void);
|
||||
extern void tearDown(void);
|
||||
extern void test_TheFirstThingToTest(void);
|
||||
extern void test_TheSecondThingToTest(void);
|
||||
|
||||
|
||||
//=======Mock Management=====
|
||||
/*=======Mock Management=====*/
|
||||
static void CMock_Init(void)
|
||||
{
|
||||
GlobalExpectCount = 0;
|
||||
@@ -65,7 +65,7 @@ static void CMock_Destroy(void)
|
||||
Mockstanky_Destroy();
|
||||
}
|
||||
|
||||
//=======Test Reset Option=====
|
||||
/*=======Test Reset Option=====*/
|
||||
void resetTest(void);
|
||||
void resetTest(void)
|
||||
{
|
||||
@@ -77,7 +77,7 @@ void resetTest(void)
|
||||
}
|
||||
|
||||
|
||||
//=======MAIN=====
|
||||
/*=======MAIN=====*/
|
||||
int main(void)
|
||||
{
|
||||
UnityBegin("testdata/mocksample.c");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* 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) \
|
||||
{ \
|
||||
Unity.CurrentTestName = #TestFunc; \
|
||||
@@ -22,7 +22,7 @@
|
||||
UnityConcludeTest(); \
|
||||
}
|
||||
|
||||
//=======Automagically Detected Files To Include=====
|
||||
/*=======Automagically Detected Files To Include=====*/
|
||||
#include "unity.h"
|
||||
#include "cmock.h"
|
||||
#include <setjmp.h>
|
||||
@@ -31,14 +31,14 @@
|
||||
#include <setjmp.h>
|
||||
#include "Mockstanky.h"
|
||||
|
||||
//=======External Functions This Runner Calls=====
|
||||
/*=======External Functions This Runner Calls=====*/
|
||||
extern void setUp(void);
|
||||
extern void tearDown(void);
|
||||
extern void test_TheFirstThingToTest(void);
|
||||
extern void test_TheSecondThingToTest(void);
|
||||
|
||||
|
||||
//=======Mock Management=====
|
||||
/*=======Mock Management=====*/
|
||||
static void CMock_Init(void)
|
||||
{
|
||||
Mockstanky_Init();
|
||||
@@ -52,19 +52,19 @@ static void CMock_Destroy(void)
|
||||
Mockstanky_Destroy();
|
||||
}
|
||||
|
||||
//=======Suite Setup=====
|
||||
/*=======Suite Setup=====*/
|
||||
static int suite_setup(void)
|
||||
{
|
||||
a_custom_setup();
|
||||
}
|
||||
|
||||
//=======Suite Teardown=====
|
||||
/*=======Suite Teardown=====*/
|
||||
static int suite_teardown(int num_failures)
|
||||
{
|
||||
a_custom_teardown();
|
||||
}
|
||||
|
||||
//=======Test Reset Option=====
|
||||
/*=======Test Reset Option=====*/
|
||||
void resetTest(void);
|
||||
void resetTest(void)
|
||||
{
|
||||
@@ -76,7 +76,7 @@ void resetTest(void)
|
||||
}
|
||||
|
||||
|
||||
//=======MAIN=====
|
||||
/*=======MAIN=====*/
|
||||
int main(void)
|
||||
{
|
||||
suite_setup();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* 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(TestFunc, TestLineNum, ...) \
|
||||
{ \
|
||||
@@ -23,7 +23,7 @@
|
||||
UnityConcludeTest(); \
|
||||
}
|
||||
|
||||
//=======Automagically Detected Files To Include=====
|
||||
/*=======Automagically Detected Files To Include=====*/
|
||||
#include "unity.h"
|
||||
#include "cmock.h"
|
||||
#include <setjmp.h>
|
||||
@@ -32,14 +32,14 @@
|
||||
#include <setjmp.h>
|
||||
#include "Mockstanky.h"
|
||||
|
||||
//=======External Functions This Runner Calls=====
|
||||
/*=======External Functions This Runner Calls=====*/
|
||||
extern void setUp(void);
|
||||
extern void tearDown(void);
|
||||
extern void test_TheFirstThingToTest(void);
|
||||
extern void test_TheSecondThingToTest(void);
|
||||
|
||||
|
||||
//=======Mock Management=====
|
||||
/*=======Mock Management=====*/
|
||||
static void CMock_Init(void)
|
||||
{
|
||||
Mockstanky_Init();
|
||||
@@ -53,7 +53,7 @@ static void CMock_Destroy(void)
|
||||
Mockstanky_Destroy();
|
||||
}
|
||||
|
||||
//=======Test Reset Option=====
|
||||
/*=======Test Reset Option=====*/
|
||||
void resetTest(void);
|
||||
void resetTest(void)
|
||||
{
|
||||
@@ -65,7 +65,7 @@ void resetTest(void)
|
||||
}
|
||||
|
||||
|
||||
//=======MAIN=====
|
||||
/*=======MAIN=====*/
|
||||
int main(void)
|
||||
{
|
||||
UnityBegin("testdata/mocksample.c");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* 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) \
|
||||
{ \
|
||||
Unity.CurrentTestName = #TestFunc; \
|
||||
@@ -25,7 +25,7 @@
|
||||
UnityConcludeTest(); \
|
||||
}
|
||||
|
||||
//=======Automagically Detected Files To Include=====
|
||||
/*=======Automagically Detected Files To Include=====*/
|
||||
#include "unity.h"
|
||||
#include "cmock.h"
|
||||
#include <setjmp.h>
|
||||
@@ -41,14 +41,14 @@ int GlobalExpectCount;
|
||||
int GlobalVerifyOrder;
|
||||
char* GlobalOrderError;
|
||||
|
||||
//=======External Functions This Runner Calls=====
|
||||
/*=======External Functions This Runner Calls=====*/
|
||||
extern void setUp(void);
|
||||
extern void tearDown(void);
|
||||
extern void test_TheFirstThingToTest(void);
|
||||
extern void test_TheSecondThingToTest(void);
|
||||
|
||||
|
||||
//=======Mock Management=====
|
||||
/*=======Mock Management=====*/
|
||||
static void CMock_Init(void)
|
||||
{
|
||||
GlobalExpectCount = 0;
|
||||
@@ -65,7 +65,7 @@ static void CMock_Destroy(void)
|
||||
Mockstanky_Destroy();
|
||||
}
|
||||
|
||||
//=======Test Reset Option=====
|
||||
/*=======Test Reset Option=====*/
|
||||
void resetTest(void);
|
||||
void resetTest(void)
|
||||
{
|
||||
@@ -77,7 +77,7 @@ void resetTest(void)
|
||||
}
|
||||
|
||||
|
||||
//=======MAIN=====
|
||||
/*=======MAIN=====*/
|
||||
int main(void)
|
||||
{
|
||||
UnityBegin("testdata/mocksample.c");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* 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) \
|
||||
{ \
|
||||
Unity.CurrentTestName = #TestFunc; \
|
||||
@@ -22,7 +22,7 @@
|
||||
UnityConcludeTest(); \
|
||||
}
|
||||
|
||||
//=======Automagically Detected Files To Include=====
|
||||
/*=======Automagically Detected Files To Include=====*/
|
||||
#include "unity.h"
|
||||
#include "cmock.h"
|
||||
#include <setjmp.h>
|
||||
@@ -31,14 +31,14 @@
|
||||
#include <setjmp.h>
|
||||
#include "Mockstanky.h"
|
||||
|
||||
//=======External Functions This Runner Calls=====
|
||||
/*=======External Functions This Runner Calls=====*/
|
||||
extern void setUp(void);
|
||||
extern void tearDown(void);
|
||||
extern void test_TheFirstThingToTest(void);
|
||||
extern void test_TheSecondThingToTest(void);
|
||||
|
||||
|
||||
//=======Mock Management=====
|
||||
/*=======Mock Management=====*/
|
||||
static void CMock_Init(void)
|
||||
{
|
||||
Mockstanky_Init();
|
||||
@@ -52,19 +52,19 @@ static void CMock_Destroy(void)
|
||||
Mockstanky_Destroy();
|
||||
}
|
||||
|
||||
//=======Suite Setup=====
|
||||
/*=======Suite Setup=====*/
|
||||
static int suite_setup(void)
|
||||
{
|
||||
a_custom_setup();
|
||||
}
|
||||
|
||||
//=======Suite Teardown=====
|
||||
/*=======Suite Teardown=====*/
|
||||
static int suite_teardown(int num_failures)
|
||||
{
|
||||
a_custom_teardown();
|
||||
}
|
||||
|
||||
//=======Test Reset Option=====
|
||||
/*=======Test Reset Option=====*/
|
||||
void resetTest(void);
|
||||
void resetTest(void)
|
||||
{
|
||||
@@ -76,7 +76,7 @@ void resetTest(void)
|
||||
}
|
||||
|
||||
|
||||
//=======MAIN=====
|
||||
/*=======MAIN=====*/
|
||||
int main(void)
|
||||
{
|
||||
suite_setup();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* 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) \
|
||||
{ \
|
||||
Unity.CurrentTestName = #TestFunc; \
|
||||
@@ -25,7 +25,7 @@
|
||||
UnityConcludeTest(); \
|
||||
}
|
||||
|
||||
//=======Automagically Detected Files To Include=====
|
||||
/*=======Automagically Detected Files To Include=====*/
|
||||
#include "unity.h"
|
||||
#include "cmock.h"
|
||||
#include <setjmp.h>
|
||||
@@ -38,14 +38,14 @@
|
||||
#include <setjmp.h>
|
||||
#include "Mockstanky.h"
|
||||
|
||||
//=======External Functions This Runner Calls=====
|
||||
/*=======External Functions This Runner Calls=====*/
|
||||
extern void setUp(void);
|
||||
extern void tearDown(void);
|
||||
extern void test_TheFirstThingToTest(void);
|
||||
extern void test_TheSecondThingToTest(void);
|
||||
|
||||
|
||||
//=======Mock Management=====
|
||||
/*=======Mock Management=====*/
|
||||
static void CMock_Init(void)
|
||||
{
|
||||
Mockstanky_Init();
|
||||
@@ -59,13 +59,13 @@ static void CMock_Destroy(void)
|
||||
Mockstanky_Destroy();
|
||||
}
|
||||
|
||||
//=======Suite Setup=====
|
||||
/*=======Suite Setup=====*/
|
||||
static int suite_setup(void)
|
||||
{
|
||||
a_yaml_setup();
|
||||
}
|
||||
|
||||
//=======Test Reset Option=====
|
||||
/*=======Test Reset Option=====*/
|
||||
void resetTest(void);
|
||||
void resetTest(void)
|
||||
{
|
||||
@@ -77,7 +77,7 @@ void resetTest(void)
|
||||
}
|
||||
|
||||
|
||||
//=======MAIN=====
|
||||
/*=======MAIN=====*/
|
||||
int main(void)
|
||||
{
|
||||
suite_setup();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* 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) \
|
||||
{ \
|
||||
Unity.CurrentTestName = #TestFunc; \
|
||||
@@ -21,7 +21,7 @@
|
||||
UnityConcludeTest(); \
|
||||
}
|
||||
|
||||
//=======Automagically Detected Files To Include=====
|
||||
/*=======Automagically Detected Files To Include=====*/
|
||||
#include "unity.h"
|
||||
#include <setjmp.h>
|
||||
#include <stdio.h>
|
||||
@@ -36,7 +36,7 @@ int GlobalExpectCount;
|
||||
int GlobalVerifyOrder;
|
||||
char* GlobalOrderError;
|
||||
|
||||
//=======External Functions This Runner Calls=====
|
||||
/*=======External Functions This Runner Calls=====*/
|
||||
extern void setUp(void);
|
||||
extern void tearDown(void);
|
||||
extern void test_TheFirstThingToTest(void);
|
||||
@@ -45,7 +45,7 @@ extern void test_TheThirdThingToTest(void);
|
||||
extern void test_TheFourthThingToTest(void);
|
||||
|
||||
|
||||
//=======Test Reset Option=====
|
||||
/*=======Test Reset Option=====*/
|
||||
void resetTest(void);
|
||||
void resetTest(void)
|
||||
{
|
||||
@@ -54,7 +54,7 @@ void resetTest(void)
|
||||
}
|
||||
|
||||
|
||||
//=======MAIN=====
|
||||
/*=======MAIN=====*/
|
||||
int main(void)
|
||||
{
|
||||
UnityBegin("testdata/testsample.c");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* 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) \
|
||||
{ \
|
||||
Unity.CurrentTestName = #TestFunc; \
|
||||
@@ -18,7 +18,7 @@
|
||||
UnityConcludeTest(); \
|
||||
}
|
||||
|
||||
//=======Automagically Detected Files To Include=====
|
||||
/*=======Automagically Detected Files To Include=====*/
|
||||
#include "unity.h"
|
||||
#include <setjmp.h>
|
||||
#include <stdio.h>
|
||||
@@ -26,7 +26,7 @@
|
||||
#include "stanky.h"
|
||||
#include <setjmp.h>
|
||||
|
||||
//=======External Functions This Runner Calls=====
|
||||
/*=======External Functions This Runner Calls=====*/
|
||||
extern void setUp(void);
|
||||
extern void tearDown(void);
|
||||
extern void test_TheFirstThingToTest(void);
|
||||
@@ -35,19 +35,19 @@ extern void test_TheThirdThingToTest(void);
|
||||
extern void test_TheFourthThingToTest(void);
|
||||
|
||||
|
||||
//=======Suite Setup=====
|
||||
/*=======Suite Setup=====*/
|
||||
static int suite_setup(void)
|
||||
{
|
||||
a_custom_setup();
|
||||
}
|
||||
|
||||
//=======Suite Teardown=====
|
||||
/*=======Suite Teardown=====*/
|
||||
static int suite_teardown(int num_failures)
|
||||
{
|
||||
a_custom_teardown();
|
||||
}
|
||||
|
||||
//=======Test Reset Option=====
|
||||
/*=======Test Reset Option=====*/
|
||||
void resetTest(void);
|
||||
void resetTest(void)
|
||||
{
|
||||
@@ -56,7 +56,7 @@ void resetTest(void)
|
||||
}
|
||||
|
||||
|
||||
//=======MAIN=====
|
||||
/*=======MAIN=====*/
|
||||
int main(void)
|
||||
{
|
||||
suite_setup();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* 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(TestFunc, TestLineNum, ...) \
|
||||
{ \
|
||||
@@ -19,7 +19,7 @@
|
||||
UnityConcludeTest(); \
|
||||
}
|
||||
|
||||
//=======Automagically Detected Files To Include=====
|
||||
/*=======Automagically Detected Files To Include=====*/
|
||||
#include "unity.h"
|
||||
#include <setjmp.h>
|
||||
#include <stdio.h>
|
||||
@@ -27,7 +27,7 @@
|
||||
#include "stanky.h"
|
||||
#include <setjmp.h>
|
||||
|
||||
//=======External Functions This Runner Calls=====
|
||||
/*=======External Functions This Runner Calls=====*/
|
||||
extern void setUp(void);
|
||||
extern void tearDown(void);
|
||||
extern void test_TheFirstThingToTest(void);
|
||||
@@ -36,7 +36,7 @@ extern void test_TheThirdThingToTest(void);
|
||||
extern void test_TheFourthThingToTest(void);
|
||||
|
||||
|
||||
//=======Test Reset Option=====
|
||||
/*=======Test Reset Option=====*/
|
||||
void resetTest(void);
|
||||
void resetTest(void)
|
||||
{
|
||||
@@ -45,7 +45,7 @@ void resetTest(void)
|
||||
}
|
||||
|
||||
|
||||
//=======MAIN=====
|
||||
/*=======MAIN=====*/
|
||||
int main(void)
|
||||
{
|
||||
UnityBegin("testdata/testsample.c");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* 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) \
|
||||
{ \
|
||||
Unity.CurrentTestName = #TestFunc; \
|
||||
@@ -21,7 +21,7 @@
|
||||
UnityConcludeTest(); \
|
||||
}
|
||||
|
||||
//=======Automagically Detected Files To Include=====
|
||||
/*=======Automagically Detected Files To Include=====*/
|
||||
#include "unity.h"
|
||||
#include <setjmp.h>
|
||||
#include <stdio.h>
|
||||
@@ -36,7 +36,7 @@ int GlobalExpectCount;
|
||||
int GlobalVerifyOrder;
|
||||
char* GlobalOrderError;
|
||||
|
||||
//=======External Functions This Runner Calls=====
|
||||
/*=======External Functions This Runner Calls=====*/
|
||||
extern void setUp(void);
|
||||
extern void tearDown(void);
|
||||
extern void test_TheFirstThingToTest(void);
|
||||
@@ -45,7 +45,7 @@ extern void test_TheThirdThingToTest(void);
|
||||
extern void test_TheFourthThingToTest(void);
|
||||
|
||||
|
||||
//=======Test Reset Option=====
|
||||
/*=======Test Reset Option=====*/
|
||||
void resetTest(void);
|
||||
void resetTest(void)
|
||||
{
|
||||
@@ -54,7 +54,7 @@ void resetTest(void)
|
||||
}
|
||||
|
||||
|
||||
//=======MAIN=====
|
||||
/*=======MAIN=====*/
|
||||
int main(void)
|
||||
{
|
||||
UnityBegin("testdata/testsample.c");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* 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) \
|
||||
{ \
|
||||
Unity.CurrentTestName = #TestFunc; \
|
||||
@@ -18,7 +18,7 @@
|
||||
UnityConcludeTest(); \
|
||||
}
|
||||
|
||||
//=======Automagically Detected Files To Include=====
|
||||
/*=======Automagically Detected Files To Include=====*/
|
||||
#include "unity.h"
|
||||
#include <setjmp.h>
|
||||
#include <stdio.h>
|
||||
@@ -26,7 +26,7 @@
|
||||
#include "stanky.h"
|
||||
#include <setjmp.h>
|
||||
|
||||
//=======External Functions This Runner Calls=====
|
||||
/*=======External Functions This Runner Calls=====*/
|
||||
extern void setUp(void);
|
||||
extern void tearDown(void);
|
||||
extern void test_TheFirstThingToTest(void);
|
||||
@@ -35,19 +35,19 @@ extern void test_TheThirdThingToTest(void);
|
||||
extern void test_TheFourthThingToTest(void);
|
||||
|
||||
|
||||
//=======Suite Setup=====
|
||||
/*=======Suite Setup=====*/
|
||||
static int suite_setup(void)
|
||||
{
|
||||
a_custom_setup();
|
||||
}
|
||||
|
||||
//=======Suite Teardown=====
|
||||
/*=======Suite Teardown=====*/
|
||||
static int suite_teardown(int num_failures)
|
||||
{
|
||||
a_custom_teardown();
|
||||
}
|
||||
|
||||
//=======Test Reset Option=====
|
||||
/*=======Test Reset Option=====*/
|
||||
void resetTest(void);
|
||||
void resetTest(void)
|
||||
{
|
||||
@@ -56,7 +56,7 @@ void resetTest(void)
|
||||
}
|
||||
|
||||
|
||||
//=======MAIN=====
|
||||
/*=======MAIN=====*/
|
||||
int main(void)
|
||||
{
|
||||
suite_setup();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* 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) \
|
||||
{ \
|
||||
Unity.CurrentTestName = #TestFunc; \
|
||||
@@ -21,7 +21,7 @@
|
||||
UnityConcludeTest(); \
|
||||
}
|
||||
|
||||
//=======Automagically Detected Files To Include=====
|
||||
/*=======Automagically Detected Files To Include=====*/
|
||||
#include "unity.h"
|
||||
#include <setjmp.h>
|
||||
#include <stdio.h>
|
||||
@@ -33,7 +33,7 @@
|
||||
#include "stanky.h"
|
||||
#include <setjmp.h>
|
||||
|
||||
//=======External Functions This Runner Calls=====
|
||||
/*=======External Functions This Runner Calls=====*/
|
||||
extern void setUp(void);
|
||||
extern void tearDown(void);
|
||||
extern void test_TheFirstThingToTest(void);
|
||||
@@ -42,13 +42,13 @@ extern void test_TheThirdThingToTest(void);
|
||||
extern void test_TheFourthThingToTest(void);
|
||||
|
||||
|
||||
//=======Suite Setup=====
|
||||
/*=======Suite Setup=====*/
|
||||
static int suite_setup(void)
|
||||
{
|
||||
a_yaml_setup();
|
||||
}
|
||||
|
||||
//=======Test Reset Option=====
|
||||
/*=======Test Reset Option=====*/
|
||||
void resetTest(void);
|
||||
void resetTest(void)
|
||||
{
|
||||
@@ -57,7 +57,7 @@ void resetTest(void)
|
||||
}
|
||||
|
||||
|
||||
//=======MAIN=====
|
||||
/*=======MAIN=====*/
|
||||
int main(void)
|
||||
{
|
||||
suite_setup();
|
||||
|
||||
Reference in New Issue
Block a user