Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Unity
提交
61dd3f18
T
Third Party Unity
项目概览
OpenHarmony
/
Third Party Unity
1 年多 前同步成功
通知
36
Star
144
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Unity
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
61dd3f18
编写于
9月 09, 2015
作者:
A
Andrzej Bieniek
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Change comments style in unity and test runner to compile with std=c89
上级
a5a927f4
变更
22
展开全部
显示空白变更内容
内联
并排
Showing
22 changed file
with
362 addition
and
362 deletion
+362
-362
auto/generate_test_runner.rb
auto/generate_test_runner.rb
+8
-8
src/unity.c
src/unity.c
+95
-95
src/unity.h
src/unity.h
+61
-61
src/unity_internals.h
src/unity_internals.h
+89
-89
test/expectdata/testsample_cmd.c
test/expectdata/testsample_cmd.c
+5
-5
test/expectdata/testsample_def.c
test/expectdata/testsample_def.c
+5
-5
test/expectdata/testsample_head1.c
test/expectdata/testsample_head1.c
+5
-5
test/expectdata/testsample_mock_cmd.c
test/expectdata/testsample_mock_cmd.c
+6
-6
test/expectdata/testsample_mock_def.c
test/expectdata/testsample_mock_def.c
+6
-6
test/expectdata/testsample_mock_head1.c
test/expectdata/testsample_mock_head1.c
+6
-6
test/expectdata/testsample_mock_new1.c
test/expectdata/testsample_mock_new1.c
+6
-6
test/expectdata/testsample_mock_new2.c
test/expectdata/testsample_mock_new2.c
+8
-8
test/expectdata/testsample_mock_param.c
test/expectdata/testsample_mock_param.c
+6
-6
test/expectdata/testsample_mock_run1.c
test/expectdata/testsample_mock_run1.c
+6
-6
test/expectdata/testsample_mock_run2.c
test/expectdata/testsample_mock_run2.c
+8
-8
test/expectdata/testsample_mock_yaml.c
test/expectdata/testsample_mock_yaml.c
+7
-7
test/expectdata/testsample_new1.c
test/expectdata/testsample_new1.c
+5
-5
test/expectdata/testsample_new2.c
test/expectdata/testsample_new2.c
+7
-7
test/expectdata/testsample_param.c
test/expectdata/testsample_param.c
+5
-5
test/expectdata/testsample_run1.c
test/expectdata/testsample_run1.c
+5
-5
test/expectdata/testsample_run2.c
test/expectdata/testsample_run2.c
+7
-7
test/expectdata/testsample_yaml.c
test/expectdata/testsample_yaml.c
+6
-6
未找到文件。
auto/generate_test_runner.rb
浏览文件 @
61dd3f18
...
...
@@ -158,7 +158,7 @@ class UnityTestRunnerGenerator
def
create_header
(
output
,
mocks
,
testfile_includes
=
[])
output
.
puts
(
'/* AUTOGENERATED FILE. DO NOT EDIT. */'
)
create_runtest
(
output
,
mocks
)
output
.
puts
(
"
\n
/
/=======Automagically Detected Files To Include=====
"
)
output
.
puts
(
"
\n
/
*=======Automagically Detected Files To Include=====*/
"
)
output
.
puts
(
"#include
\"
#{
@options
[
:framework
].
to_s
}
.h
\"
"
)
output
.
puts
(
'#include "cmock.h"'
)
unless
(
mocks
.
empty?
)
output
.
puts
(
'#include <setjmp.h>'
)
...
...
@@ -186,7 +186,7 @@ class UnityTestRunnerGenerator
end
def
create_externs
(
output
,
tests
,
mocks
)
output
.
puts
(
"
\n
/
/=======External Functions This Runner Calls=====
"
)
output
.
puts
(
"
\n
/
*=======External Functions This Runner Calls=====*/
"
)
output
.
puts
(
"extern void
#{
@options
[
:setup_name
]
}
(void);"
)
output
.
puts
(
"extern void
#{
@options
[
:teardown_name
]
}
(void);"
)
tests
.
each
do
|
test
|
...
...
@@ -197,7 +197,7 @@ class UnityTestRunnerGenerator
def
create_mock_management
(
output
,
mock_headers
)
unless
(
mock_headers
.
empty?
)
output
.
puts
(
"
\n
/
/=======Mock Management=====
"
)
output
.
puts
(
"
\n
/
*=======Mock Management=====*/
"
)
output
.
puts
(
"static void CMock_Init(void)"
)
output
.
puts
(
"{"
)
if
@options
[
:enforce_strict_ordering
]
...
...
@@ -232,14 +232,14 @@ class UnityTestRunnerGenerator
def
create_suite_setup_and_teardown
(
output
)
unless
(
@options
[
:suite_setup
].
nil?
)
output
.
puts
(
"
\n
/
/=======Suite Setup=====
"
)
output
.
puts
(
"
\n
/
*=======Suite Setup=====*/
"
)
output
.
puts
(
"static int suite_setup(void)"
)
output
.
puts
(
"{"
)
output
.
puts
(
@options
[
:suite_setup
])
output
.
puts
(
"}"
)
end
unless
(
@options
[
:suite_teardown
].
nil?
)
output
.
puts
(
"
\n
/
/=======Suite Teardown=====
"
)
output
.
puts
(
"
\n
/
*=======Suite Teardown=====*/
"
)
output
.
puts
(
"static int suite_teardown(int num_failures)"
)
output
.
puts
(
"{"
)
output
.
puts
(
@options
[
:suite_teardown
])
...
...
@@ -251,7 +251,7 @@ class UnityTestRunnerGenerator
cexception
=
@options
[
:plugins
].
include?
:cexception
va_args1
=
@options
[
:use_param_tests
]
?
', ...'
:
''
va_args2
=
@options
[
:use_param_tests
]
?
'__VA_ARGS__'
:
''
output
.
puts
(
"
\n
/
/=======Test Runner Used To Run Each Test Below=====
"
)
output
.
puts
(
"
\n
/
*=======Test Runner Used To Run Each Test Below=====*/
"
)
output
.
puts
(
"#define RUN_TEST_NO_ARGS"
)
if
@options
[
:use_param_tests
]
output
.
puts
(
"#define RUN_TEST(TestFunc, TestLineNum
#{
va_args1
}
)
\\
"
)
output
.
puts
(
"{
\\
"
)
...
...
@@ -279,7 +279,7 @@ class UnityTestRunnerGenerator
end
def
create_reset
(
output
,
used_mocks
)
output
.
puts
(
"
\n
/
/=======Test Reset Option=====
"
)
output
.
puts
(
"
\n
/
*=======Test Reset Option=====*/
"
)
output
.
puts
(
"void resetTest(void);"
)
output
.
puts
(
"void resetTest(void)"
)
output
.
puts
(
"{"
)
...
...
@@ -292,7 +292,7 @@ class UnityTestRunnerGenerator
end
def
create_main
(
output
,
filename
,
tests
,
used_mocks
)
output
.
puts
(
"
\n\n
/
/=======MAIN=====
"
)
output
.
puts
(
"
\n\n
/
*=======MAIN=====*/
"
)
if
(
@options
[
:main_name
]
!=
"main"
)
output
.
puts
(
"int
#{
@options
[
:main_name
]
}
(void);"
)
end
...
...
src/unity.c
浏览文件 @
61dd3f18
此差异已折叠。
点击以展开。
src/unity.h
浏览文件 @
61dd3f18
此差异已折叠。
点击以展开。
src/unity_internals.h
浏览文件 @
61dd3f18
...
...
@@ -13,10 +13,10 @@
#include <setjmp.h>
/
/
Unity Attempts to Auto-Detect Integer Types
//
Attempt 1: UINT_MAX, ULONG_MAX, etc in <stdint.h>
//
Attempt 2: UINT_MAX, ULONG_MAX, etc in <limits.h>
// Attempt 3: Deduced from sizeof() macros
/
*
Unity Attempts to Auto-Detect Integer Types
*
Attempt 1: UINT_MAX, ULONG_MAX, etc in <stdint.h>
*
Attempt 2: UINT_MAX, ULONG_MAX, etc in <limits.h>
* Attempt 3: Deduced from sizeof() macros */
#ifndef UNITY_EXCLUDE_STDINT_H
#include <stdint.h>
#endif
...
...
@@ -33,7 +33,7 @@
#define ULONG_MAX (sizeof(unsigned long) * 256 - 1)
#endif
#ifndef UINTPTR_MAX
/
/apparently this is not a constant expression: (sizeof(unsigned int *) * 256 - 1) so we have to just let this fall through
/
* apparently this is not a constant expression: (sizeof(unsigned int *) * 256 - 1) so we have to just let this fall through */
#endif
#endif
...
...
@@ -41,14 +41,14 @@
#include <math.h>
#endif
/
/
-------------------------------------------------------
//
Guess Widths If Not Specified
//-------------------------------------------------------
/
*
-------------------------------------------------------
*
Guess Widths If Not Specified
*-------------------------------------------------------*/
/
/
Determine the size of an int, if not already specificied.
//
We cannot use sizeof(int), because it is not yet defined
//
at this stage in the trnslation of the C program.
// Therefore, infer it from UINT_MAX if possible.
/
*
Determine the size of an int, if not already specificied.
*
We cannot use sizeof(int), because it is not yet defined
*
at this stage in the trnslation of the C program.
* Therefore, infer it from UINT_MAX if possible. */
#ifndef UNITY_INT_WIDTH
#ifdef UINT_MAX
#if (UINT_MAX == 0xFFFF)
...
...
@@ -64,9 +64,9 @@
#define UNITY_INT_WIDTH (32)
#endif
/
/
Determine the size of a long, if not already specified,
//
by following the process used above to define
// UNITY_INT_WIDTH.
/
*
Determine the size of a long, if not already specified,
*
by following the process used above to define
* UNITY_INT_WIDTH. */
#ifndef UNITY_LONG_WIDTH
#ifdef ULONG_MAX
#if (ULONG_MAX == 0xFFFF)
...
...
@@ -82,9 +82,9 @@
#define UNITY_LONG_WIDTH (32)
#endif
/
/
Determine the size of a pointer, if not already specified,
//
by following the process used above to define
// UNITY_INT_WIDTH.
/
*
Determine the size of a pointer, if not already specified,
*
by following the process used above to define
* UNITY_INT_WIDTH. */
#ifndef UNITY_POINTER_WIDTH
#ifdef UINTPTR_MAX
#if (UINTPTR_MAX+0 <= 0xFFFF)
...
...
@@ -111,9 +111,9 @@
#define UNITY_POINTER_WIDTH UNITY_LONG_WIDTH
#endif
/
/
-------------------------------------------------------
//
Int Support (Define types based on detected sizes)
//-------------------------------------------------------
/
*
-------------------------------------------------------
*
Int Support (Define types based on detected sizes)
*-------------------------------------------------------*/
#if (UNITY_INT_WIDTH == 32)
typedef
unsigned
char
_UU8
;
...
...
@@ -133,9 +133,9 @@
#error Invalid UNITY_INT_WIDTH specified! (16 or 32 are supported)
#endif
/
/
-------------------------------------------------------
//
64-bit Support
//-------------------------------------------------------
/
*
-------------------------------------------------------
*
64-bit Support
*-------------------------------------------------------*/
#ifndef UNITY_SUPPORT_64
#if UNITY_LONG_WIDTH > 32
...
...
@@ -150,13 +150,13 @@
#ifndef UNITY_SUPPORT_64
/
/No 64-bit Support
/
* No 64-bit Support */
typedef
_UU32
_U_UINT
;
typedef
_US32
_U_SINT
;
#else
/
/64-bit Support
/
* 64-bit Support */
#if (UNITY_LONG_WIDTH == 32)
typedef
unsigned
long
long
_UU64
;
typedef
signed
long
long
_US64
;
...
...
@@ -171,9 +171,9 @@ typedef _US64 _U_SINT;
#endif
/
/
-------------------------------------------------------
//
Pointer Support
//-------------------------------------------------------
/
*
-------------------------------------------------------
*
Pointer Support
*-------------------------------------------------------*/
#if (UNITY_POINTER_WIDTH == 32)
typedef
_UU32
_UP
;
...
...
@@ -194,16 +194,16 @@ typedef _US64 _U_SINT;
#ifndef UNITY_INTERNAL_PTR
#define UNITY_INTERNAL_PTR UNITY_PTR_ATTRIBUTE const void*
/
/#define UNITY_INTERNAL_PTR UNITY_PTR_ATTRIBUTE const _UU8*
/
* #define UNITY_INTERNAL_PTR UNITY_PTR_ATTRIBUTE const _UU8* */
#endif
/
/
-------------------------------------------------------
//
Float Support
//-------------------------------------------------------
/
*
-------------------------------------------------------
*
Float Support
*-------------------------------------------------------*/
#ifdef UNITY_EXCLUDE_FLOAT
/
/No Floating Point Support
/
* No Floating Point Support */
#undef UNITY_INCLUDE_FLOAT
#undef UNITY_FLOAT_PRECISION
#undef UNITY_FLOAT_TYPE
...
...
@@ -215,7 +215,7 @@ typedef _US64 _U_SINT;
#define UNITY_INCLUDE_FLOAT
#endif
/
/Floating Point Support
/
* Floating Point Support */
#ifndef UNITY_FLOAT_PRECISION
#define UNITY_FLOAT_PRECISION (0.00001f)
#endif
...
...
@@ -243,11 +243,11 @@ typedef UNITY_FLOAT_TYPE _UF;
#endif
/
/
-------------------------------------------------------
//
Double Float Support
//-------------------------------------------------------
/
*
-------------------------------------------------------
*
Double Float Support
*-------------------------------------------------------*/
/
/unlike FLOAT, we DON'T include by default
/
* unlike FLOAT, we DON'T include by default */
#ifndef UNITY_EXCLUDE_DOUBLE
#ifndef UNITY_INCLUDE_DOUBLE
#define UNITY_EXCLUDE_DOUBLE
...
...
@@ -256,7 +256,7 @@ typedef UNITY_FLOAT_TYPE _UF;
#ifdef UNITY_EXCLUDE_DOUBLE
/
/No Floating Point Support
/
* No Floating Point Support */
#undef UNITY_DOUBLE_PRECISION
#undef UNITY_DOUBLE_TYPE
#undef UNITY_DOUBLE_VERBOSE
...
...
@@ -267,7 +267,7 @@ typedef UNITY_FLOAT_TYPE _UF;
#else
/
/Double Floating Point Support
/
* Double Floating Point Support */
#ifndef UNITY_DOUBLE_PRECISION
#define UNITY_DOUBLE_PRECISION (1e-12f)
#endif
...
...
@@ -284,26 +284,26 @@ typedef UNITY_DOUBLE_TYPE _UD;
#endif
#endif
/
/
-------------------------------------------------------
//
Output Method: stdout (DEFAULT)
//-------------------------------------------------------
/
*
-------------------------------------------------------
*
Output Method: stdout (DEFAULT)
*-------------------------------------------------------*/
#ifndef UNITY_OUTPUT_CHAR
/
/Default to using putchar, which is defined in stdio.h
/
* Default to using putchar, which is defined in stdio.h */
#include <stdio.h>
#define UNITY_OUTPUT_CHAR(a) (void)putchar(a)
#else
/
/If defined as something else, make sure we declare it here so it's ready for use
/
* If defined as something else, make sure we declare it here so it's ready for use */
#ifndef UNITY_OMIT_OUTPUT_CHAR_HEADER_DECLARATION
extern
void
UNITY_OUTPUT_CHAR
(
int
);
#endif
#endif
#ifndef UNITY_OUTPUT_FLUSH
/
/Default to using putchar, which is defined in stdio.h
/
* Default to using putchar, which is defined in stdio.h */
#include <stdio.h>
#define UNITY_OUTPUT_FLUSH() (void)fflush(stdout)
#else
/
/If defined as something else, make sure we declare it here so it's ready for use
/
* If defined as something else, make sure we declare it here so it's ready for use */
#ifndef UNITY_OMIT_OUTPUT_FLUSH_HEADER_DECLARATION
extern
void
UNITY_OUTPUT_FLUSH
(
void
);
#endif
...
...
@@ -321,9 +321,9 @@ extern void UNITY_OUTPUT_FLUSH(void);
#define UNITY_OUTPUT_COMPLETE()
#endif
/
/
-------------------------------------------------------
//
Footprint
//-------------------------------------------------------
/
*
-------------------------------------------------------
*
Footprint
*-------------------------------------------------------*/
#ifndef UNITY_LINE_TYPE
#define UNITY_LINE_TYPE _U_UINT
...
...
@@ -333,11 +333,11 @@ extern void UNITY_OUTPUT_FLUSH(void);
#define UNITY_COUNTER_TYPE _U_UINT
#endif
/
/
-------------------------------------------------------
//
Language Features Available
//-------------------------------------------------------
/
*
-------------------------------------------------------
*
Language Features Available
*-------------------------------------------------------*/
#if !defined(UNITY_WEAK_ATTRIBUTE) && !defined(UNITY_WEAK_PRAGMA)
# ifdef __GNUC__ /
/ includes clang
# ifdef __GNUC__
/
* includes clang */
# if !(defined(__WIN32__) && defined(__clang__))
# define UNITY_WEAK_ATTRIBUTE __attribute__((weak))
# endif
...
...
@@ -350,9 +350,9 @@ extern void UNITY_OUTPUT_FLUSH(void);
#endif
/
/
-------------------------------------------------------
//
Internal Structs Needed
//-------------------------------------------------------
/
*
-------------------------------------------------------
*
Internal Structs Needed
*-------------------------------------------------------*/
typedef
void
(
*
UnityTestFunction
)(
void
);
...
...
@@ -433,18 +433,18 @@ struct _Unity
extern
struct
_Unity
Unity
;
/
/
-------------------------------------------------------
//
Test Suite Management
//-------------------------------------------------------
/
*
-------------------------------------------------------
*
Test Suite Management
*-------------------------------------------------------*/
void
UnityBegin
(
const
char
*
filename
);
int
UnityEnd
(
void
);
void
UnityConcludeTest
(
void
);
void
UnityDefaultTestRun
(
UnityTestFunction
Func
,
const
char
*
FuncName
,
const
int
FuncLineNum
);
/
/
-------------------------------------------------------
//
Details Support
//-------------------------------------------------------
/
*
-------------------------------------------------------
*
Details Support
*-------------------------------------------------------*/
#ifdef UNITY_EXCLUDE_DETAILS
#define UNITY_CLR_DETAILS()
...
...
@@ -464,9 +464,9 @@ void UnityDefaultTestRun(UnityTestFunction Func, const char* FuncName, const int
#endif
#endif
/
/
-------------------------------------------------------
//
Test Output
//-------------------------------------------------------
/
*
-------------------------------------------------------
*
Test Output
*-------------------------------------------------------*/
void
UnityPrint
(
const
char
*
string
);
void
UnityPrintMask
(
const
_U_UINT
mask
,
const
_U_UINT
number
);
...
...
@@ -479,13 +479,13 @@ void UnityPrintNumberHex(const _U_UINT number, const char nibbles);
void
UnityPrintFloat
(
const
_UF
number
);
#endif
/
/
-------------------------------------------------------
//
Test Assertion Fuctions
//
-------------------------------------------------------
//
Use the macros below this section instead of calling
//
these directly. The macros have a consistent naming
//
convention and will pull in file and line information
// for you.
/
*
-------------------------------------------------------
*
Test Assertion Fuctions
*
-------------------------------------------------------
*
Use the macros below this section instead of calling
*
these directly. The macros have a consistent naming
*
convention and will pull in file and line information
* for you. */
void
UnityAssertEqualNumber
(
const
_U_SINT
expected
,
const
_U_SINT
actual
,
...
...
@@ -579,23 +579,23 @@ void UnityAssertDoubleSpecial(const _UD actual,
const
UNITY_FLOAT_TRAIT_T
style
);
#endif
/
/
-------------------------------------------------------
//
Error Strings We Might Need
//-------------------------------------------------------
/
*
-------------------------------------------------------
*
Error Strings We Might Need
*-------------------------------------------------------*/
extern
const
char
UnityStrErrFloat
[];
extern
const
char
UnityStrErrDouble
[];
extern
const
char
UnityStrErr64
[];
/
/
-------------------------------------------------------
//
Test Running Macros
//-------------------------------------------------------
/
*
-------------------------------------------------------
*
Test Running Macros
*-------------------------------------------------------*/
#define TEST_PROTECT() (setjmp(Unity.AbortFrame) == 0)
#define TEST_ABORT() {longjmp(Unity.AbortFrame, 1);}
/
/This tricky series of macros gives us an optional line argument to treat it as RUN_TEST(func, num=__LINE__)
/
* This tricky series of macros gives us an optional line argument to treat it as RUN_TEST(func, num=__LINE__) */
#ifndef RUN_TEST
#ifdef __STDC_VERSION__
#if __STDC_VERSION__ >= 199901L
...
...
@@ -608,7 +608,7 @@ extern const char UnityStrErr64[];
#endif
#endif
/
/If we can't do the tricky version, we'll just have to require them to always include the line number
/
* If we can't do the tricky version, we'll just have to require them to always include the line number */
#ifndef RUN_TEST
#ifdef CMOCK
#define RUN_TEST(func, num) UnityDefaultTestRun(func, #func, num)
...
...
@@ -634,16 +634,16 @@ extern const char UnityStrErr64[];
#define UNITY_UNUSED(x) (void)(sizeof(x))
/
/
-------------------------------------------------------
//
Basic Fail and Ignore
//-------------------------------------------------------
/
*
-------------------------------------------------------
*
Basic Fail and Ignore
*-------------------------------------------------------*/
#define UNITY_TEST_FAIL(line, message) UnityFail( (message), (UNITY_LINE_TYPE)(line))
#define UNITY_TEST_IGNORE(line, message) UnityIgnore( (message), (UNITY_LINE_TYPE)(line))
/
/
-------------------------------------------------------
//
Test Asserts
//-------------------------------------------------------
/
*
-------------------------------------------------------
*
Test Asserts
*-------------------------------------------------------*/
#define UNITY_TEST_ASSERT(condition, line, message) if (condition) {} else {UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), (message));}
#define UNITY_TEST_ASSERT_NULL(pointer, line, message) UNITY_TEST_ASSERT(((pointer) == NULL), (UNITY_LINE_TYPE)(line), (message))
...
...
@@ -768,5 +768,5 @@ extern const char UnityStrErr64[];
#define UNITY_TEST_ASSERT_DOUBLE_IS_NOT_DETERMINATE(actual, line, message) UnityAssertDoubleSpecial((_UD)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_FLOAT_IS_NOT_DET)
#endif
/
/End of UNITY_INTERNALS_H
/
* End of UNITY_INTERNALS_H */
#endif
test/expectdata/testsample_cmd.c
浏览文件 @
61dd3f18
/* 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"
);
...
...
test/expectdata/testsample_def.c
浏览文件 @
61dd3f18
/* 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"
);
...
...
test/expectdata/testsample_head1.c
浏览文件 @
61dd3f18
/* 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"
);
...
...
test/expectdata/testsample_mock_cmd.c
浏览文件 @
61dd3f18
/* 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"
);
...
...
test/expectdata/testsample_mock_def.c
浏览文件 @
61dd3f18
/* 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"
);
...
...
test/expectdata/testsample_mock_head1.c
浏览文件 @
61dd3f18
/* 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"
);
...
...
test/expectdata/testsample_mock_new1.c
浏览文件 @
61dd3f18
/* 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"
);
...
...
test/expectdata/testsample_mock_new2.c
浏览文件 @
61dd3f18
/* 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
();
...
...
test/expectdata/testsample_mock_param.c
浏览文件 @
61dd3f18
/* 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"
);
...
...
test/expectdata/testsample_mock_run1.c
浏览文件 @
61dd3f18
/* 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"
);
...
...
test/expectdata/testsample_mock_run2.c
浏览文件 @
61dd3f18
/* 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
();
...
...
test/expectdata/testsample_mock_yaml.c
浏览文件 @
61dd3f18
/* 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
();
...
...
test/expectdata/testsample_new1.c
浏览文件 @
61dd3f18
/* 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"
);
...
...
test/expectdata/testsample_new2.c
浏览文件 @
61dd3f18
/* 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
();
...
...
test/expectdata/testsample_param.c
浏览文件 @
61dd3f18
/* 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"
);
...
...
test/expectdata/testsample_run1.c
浏览文件 @
61dd3f18
/* 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"
);
...
...
test/expectdata/testsample_run2.c
浏览文件 @
61dd3f18
/* 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
();
...
...
test/expectdata/testsample_yaml.c
浏览文件 @
61dd3f18
/* 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
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录