Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Unity
提交
a7b60dfc
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看板
提交
a7b60dfc
编写于
1月 15, 2016
作者:
J
jsalling
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Consistent use of * in types in the Fixture, whitespace only
上级
69341784
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
25 addition
and
25 deletion
+25
-25
extras/fixture/src/unity_fixture.c
extras/fixture/src/unity_fixture.c
+16
-16
extras/fixture/src/unity_fixture_internals.h
extras/fixture/src/unity_fixture_internals.h
+9
-9
未找到文件。
extras/fixture/src/unity_fixture.c
浏览文件 @
a7b60dfc
...
...
@@ -48,7 +48,7 @@ int UnityMain(int argc, const char* argv[], void (*runAllTests)(void))
return
UnityFailureCount
();
}
static
int
selected
(
const
char
*
filter
,
const
char
*
name
)
static
int
selected
(
const
char
*
filter
,
const
char
*
name
)
{
if
(
filter
==
0
)
return
1
;
...
...
@@ -66,12 +66,12 @@ static int groupSelected(const char* group)
}
void
UnityTestRunner
(
unityfunction
*
setup
,
unityfunction
*
testBody
,
unityfunction
*
teardown
,
const
char
*
printableName
,
const
char
*
group
,
const
char
*
name
,
const
char
*
file
,
int
line
)
unityfunction
*
testBody
,
unityfunction
*
teardown
,
const
char
*
printableName
,
const
char
*
group
,
const
char
*
name
,
const
char
*
file
,
int
line
)
{
if
(
testSelected
(
name
)
&&
groupSelected
(
group
))
{
...
...
@@ -107,7 +107,7 @@ void UnityTestRunner(unityfunction* setup,
}
}
void
UnityIgnoreTest
(
const
char
*
printableName
,
const
char
*
group
,
const
char
*
name
)
void
UnityIgnoreTest
(
const
char
*
printableName
,
const
char
*
group
,
const
char
*
name
)
{
if
(
testSelected
(
name
)
&&
groupSelected
(
group
))
{
...
...
@@ -176,7 +176,7 @@ typedef struct GuardBytes
static
const
char
end
[]
=
"END"
;
void
*
unity_malloc
(
size_t
size
)
void
*
unity_malloc
(
size_t
size
)
{
char
*
mem
;
Guard
*
guard
;
...
...
@@ -198,7 +198,7 @@ void * unity_malloc(size_t size)
return
(
void
*
)
mem
;
}
static
int
isOverrun
(
void
*
mem
)
static
int
isOverrun
(
void
*
mem
)
{
Guard
*
guard
=
(
Guard
*
)
mem
;
char
*
memAsChar
=
(
char
*
)
mem
;
...
...
@@ -207,7 +207,7 @@ static int isOverrun(void * mem)
return
strcmp
(
&
memAsChar
[
guard
->
size
],
end
)
!=
0
;
}
static
void
release_memory
(
void
*
mem
)
static
void
release_memory
(
void
*
mem
)
{
Guard
*
guard
=
(
Guard
*
)
mem
;
guard
--
;
...
...
@@ -216,7 +216,7 @@ static void release_memory(void * mem)
UNITY_FIXTURE_FREE
(
guard
);
}
void
unity_free
(
void
*
mem
)
void
unity_free
(
void
*
mem
)
{
int
overrun
;
...
...
@@ -240,7 +240,7 @@ void* unity_calloc(size_t num, size_t size)
return
mem
;
}
void
*
unity_realloc
(
void
*
oldMem
,
size_t
size
)
void
*
unity_realloc
(
void
*
oldMem
,
size_t
size
)
{
Guard
*
guard
=
(
Guard
*
)
oldMem
;
// char* memAsChar = (char*)oldMem;
...
...
@@ -276,9 +276,9 @@ void* unity_realloc(void * oldMem, size_t size)
//Automatic pointer restoration functions
typedef
struct
_PointerPair
{
struct
_PointerPair
*
next
;
void
**
pointer
;
void
*
old_value
;
struct
_PointerPair
*
next
;
void
**
pointer
;
void
*
old_value
;
}
PointerPair
;
enum
{
MAX_POINTERS
=
50
};
...
...
extras/fixture/src/unity_fixture_internals.h
浏览文件 @
a7b60dfc
...
...
@@ -17,15 +17,15 @@ typedef struct _UNITY_FIXTURE_T
}
UNITY_FIXTURE_T
;
typedef
void
unityfunction
(
void
);
void
UnityTestRunner
(
unityfunction
*
setup
,
unityfunction
*
body
,
unityfunction
*
teardown
,
const
char
*
printableName
,
const
char
*
group
,
const
char
*
name
,
const
char
*
file
,
int
line
);
void
UnityTestRunner
(
unityfunction
*
setup
,
unityfunction
*
body
,
unityfunction
*
teardown
,
const
char
*
printableName
,
const
char
*
group
,
const
char
*
name
,
const
char
*
file
,
int
line
);
void
UnityIgnoreTest
(
const
char
*
printableName
,
const
char
*
group
,
const
char
*
name
);
void
UnityIgnoreTest
(
const
char
*
printableName
,
const
char
*
group
,
const
char
*
name
);
void
UnityMalloc_StartTest
(
void
);
void
UnityMalloc_EndTest
(
void
);
UNITY_COUNTER_TYPE
UnityFailureCount
(
void
);
...
...
@@ -34,7 +34,7 @@ UNITY_COUNTER_TYPE UnityTestsCount(void);
int
UnityGetCommandLineOptions
(
int
argc
,
const
char
*
argv
[]);
void
UnityConcludeFixtureTest
(
void
);
void
UnityPointer_Set
(
void
**
ptr
,
void
*
newValue
);
void
UnityPointer_Set
(
void
**
ptr
,
void
*
newValue
);
void
UnityPointer_UndoAllSets
(
void
);
void
UnityPointer_Init
(
void
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录