ZFFramework
 
Loading...
Searching...
No Matches
ZFTestCaseUtil.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFTestCaseUtil_h_
7#define _ZFI_ZFTestCaseUtil_h_
8
9#include "ZFTestCase.h"
11
12// ============================================================
20 , ZFMP_IN(const ZFClass *, cls)
21 )
26 , ZFMP_IN(const zfstring &, classNameFull)
27 )
28
29// ============================================================
36ZFEVENT_GLOBAL(ZFLIB_ZFUtility, TestCaseRunAllOnStart)
42ZFEVENT_GLOBAL(ZFLIB_ZFUtility, TestCaseRunAllOnStop)
44
52 , ZFMP_IN_OPT(const ZFCoreArray<const ZFClass *> *, toStart, zfnull)
53 )
58
61 , ZFMP_IN_OUT(ZFCoreArray<const ZFClass *> &, ret)
62 )
67
69#endif // #ifndef _ZFI_ZFTestCaseUtil_h_
70
#define zfnull
same as NULL, defined for future use
Definition ZFCoreTypeDef_CoreType.h:88
zft_zfstring< zfchar > zfstring
see zft_zfstring
Definition ZFCoreTypeDef_StringType.h:15
#define ZFMP_IN_OUT(ParamType, paramName)
see ZFMP_IN
Definition ZFMethod.h:117
#define ZFMP_IN_OPT(ParamType, paramName, DefaultValue)
see ZFMP_IN
Definition ZFMethod.h:108
#define ZFMP_IN(ParamType, paramName)
macro to wrap param types for ZFMETHOD_INLINE_0 series
Definition ZFMethod.h:105
#define ZFMETHOD_FUNC_DECLARE_0(ZFLIB_, ReturnType, MethodName)
declare function type of ZFMethod
Definition ZFMethodFuncDeclare.h:493
#define ZFMETHOD_FUNC_DECLARE_1(ZFLIB_, ReturnType, MethodName, ZFMP_0)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:624
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_END(NameSpace)
end namespace
Definition ZFNamespace.h:60
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
#define ZF_NAMESPACE_BEGIN(NameSpace)
begin namespace
Definition ZFNamespace.h:40
#define ZFEVENT_GLOBAL(ZFLIB_, YourEvent)
declare a observer event in global scope, see ZFEVENT
Definition ZFObjectObserver.h:369
test case define
void ZFTestCaseGetAllT(ZFCoreArray< const ZFClass * > &ret)
see ZFTestCaseGetAll
void ZFTestCaseRunAllStart(const ZFCoreArray< const ZFClass * > *toStart=(zft_zfnull))
use reflect to start all test cases
void ZFTestCaseRunAllStop()
stop ZFTestCaseRunAllStart
ZFCoreArray< const ZFClass * > ZFTestCaseGetAll()
get all test case currently registered
zfautoT< ZFTestCase > ZFTestCaseRun(const ZFClass *cls)
run a single test case
#define ZFLIB_ZFUtility
used to export symbols
Definition ZFUtilityDef.h:15
ZFObject's class info.
Definition ZFClass.h:67
light weight array
Definition ZFCoreArray.h:331
abstract test case
Definition ZFTestCase.h:25
type restrict version of zfauto
Definition zfautoFwd.h:110
Definition ZFApp.h:13