CCUnit  2.1
A C Unit Testing Library
 全て データ構造 ファイル 関数 変数 型定義 列挙型 列挙型の値 マクロ定義 グループ ページ
変数
構造体 CCUnitTestFunc

A single test function object. [詳細]

#include <CCUnitTestFunc.h>

CCUnitTestFuncのコラボレーション図
Collaboration graph

変数

const char * name
 test func name
const char * desc
 test description
void(* runTest )()
 run test function

説明

A single test function object.

For each test implement a function which interacts with the case. Verify the expected results with assertions specified by calling CCUNIT_ASSERT on the expression you want to test:

void testAdd ()
{
int result = value1 + value2;
CCUNIT_ASSERT (result == 5);
}
...
int main ()
{
CCUnitTestCase* c = ccunit_newTestCase ("math test");
CCUnitTestFunc* f = ccunit_newTestFunc ("testAdd", "add test", testAdd);
return 0;
}
参照:
CCUnitTestCase, CCUnitTestSuite, MakeSuite

構造体

const char* CCUnitTestFunc::desc
const char* CCUnitTestFunc::name
void(* CCUnitTestFunc::runTest)()

この構造体の説明は次のファイルから生成されました:
SourceForge.jp hosts this site. Send comments to: CCUnit Developer