projects
/
fwd.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Create repository
[fwd.git]
/
test
/
qdtestcase.h
1
2
#ifndef __QD_TESTCASE_H__
3
#define __QD_TESTCASE_H__
4
5
#include "unity.h"
6
7
void setUp(void);
8
void tearDown(void);
9
10
static void runTest(UnityTestFunction test)
11
{
12
if (TEST_PROTECT())
13
{
14
setUp();
15
test();
16
}
17
if (TEST_PROTECT() && !TEST_IS_IGNORED)
18
{
19
tearDown();
20
}
21
}
22
void resetTest(void);
23
void resetTest(void)
24
{
25
tearDown();
26
setUp();
27
}
28
29
#endif /* __QD_TESTCASE_H__ */
30