EmbeddedUnit
embUnit
Test.h
Go to the documentation of this file.
1
34
#ifndef __TEST_H__
35
#define __TEST_H__
36
37
typedef
struct
__TestResult
TestResult
;
38
typedef
struct
__TestResult
*
TestResultRef
;
/*downward compatible*/
39
40
typedef
struct
__TestImplement
TestImplement
;
41
typedef
struct
__TestImplement
*
TestImplementRef
;
/*downward compatible*/
42
43
typedef
char
*(*TestNameFunction)(
void
*);
44
typedef
void(*TestRunFunction)(
void
*,
TestResult
*);
45
typedef
int(*TestCountTestCasesFunction)(
void
*);
46
47
struct
__TestImplement
{
48
TestNameFunction name;
49
TestRunFunction run;
50
TestCountTestCasesFunction countTestCases;
51
};
52
53
typedef
struct
__Test
Test;
54
typedef
struct
__Test
*
TestRef
;
/*downward compatible*/
55
56
struct
__Test
{
57
TestImplement
* isa;
58
};
59
60
#define Test_name(s) ((Test*)s)->isa->name(s)
61
#define Test_run(s,r) ((Test*)s)->isa->run(s,r)
62
#define Test_countTestCases(s) ((Test*)s)->isa->countTestCases(s)
63
64
#endif
/*__TEST_H__*/
__TestResult
Definition:
TestResult.h:47
__TestImplement
Definition:
Test.h:47
__Test
Definition:
Test.h:56
Generated by
1.8.13