11 #ifndef CMNCLIB_CMN_TEST_H
12 #define CMNCLIB_CMN_TEST_H
59 #define CmnTest_AddTestCaseEasy(plan, testFunction) CmnTest_AddTestCase(plan, __FILE__, #testFunction, testFunction)
D_EXTERN int CmnTest_AssertNumber(CmnTestCase *testCase, long line, long long actual, long long expected)
Definition: CmnTest.c:187
void(* testFunction)(struct tag_CmnTestCase *)
Definition: CmnTest.h:30
D_EXTERN int CmnTest_AssertData(CmnTestCase *testCase, long line, void *actual, void *expected, size_t dataLen)
Definition: CmnTest.c:323
D_EXTERN void CmnTest_InitializeTestPlan(CmnTestPlan *plan)
テストプランを作成する
Definition: CmnTest.c:61
char * testFileName
Definition: CmnTest.h:28
char * testCaseName
Definition: CmnTest.h:29
char * actual
Definition: CmnTest.h:34
D_EXTERN int CmnTest_AssertPointer(CmnTestCase *testCase, long line, void *actual, void *expected)
Definition: CmnTest.c:221
struct tag_CmnTestCase CmnTestCase
D_EXTERN void CmnTest_Run(CmnTestPlan *plan, int realtimeReport)
テストを実行する
Definition: CmnTest.c:99
D_EXTERN int CmnTest_AssertNG(CmnTestCase *testCase, long line)
Definition: CmnTest.c:368
int result
Definition: CmnTest.h:31
D_EXTERN int CmnTest_AssertOK(CmnTestCase *testCase, long line)
Definition: CmnTest.c:352
D_EXTERN void CmnTest_DestroyTest(CmnTestPlan *plan)
テストプランを破棄する
Definition: CmnTest.c:158
CmnTimeDateTime startTime
Definition: CmnTest.h:21
D_EXTERN void CmnTest_AddTestCase(CmnTestPlan *plan, char *fileName, char *caseName, void(*testFunction)(CmnTestCase *))
テストプランにテストケースを追加する
Definition: CmnTest.c:77
CmnDataList * caseList
Definition: CmnTest.h:20
char * expected
Definition: CmnTest.h:33
struct tag_CmnTestPlan CmnTestPlan
long lineOfNg
Definition: CmnTest.h:32
D_EXTERN int CmnTest_AssertString(CmnTestCase *testCase, long line, char *actual, char *expected)
Definition: CmnTest.c:255
char * report
Definition: CmnTest.h:23
CmnTimeDateTime endTime
Definition: CmnTest.h:22