[ CCUnit project page ] |  | [ CCUnit home page ]

データ構造 | 型定義 | 列挙型 | 関数

# テスト結果の参照

テスト結果を参照します。 [詳細]

テスト結果の参照のコラボレーション図

## データ構造
struct | CCUnitTest
| Run Test and collect its results. [詳細]
struct | CCUnitTestFailure
| Collects a failed test together with the failed assertion. [詳細]
## 型定義
typedef enum CCUnitTestType_t | CCUnitTestType_t
| Test class type.
typedef struct CCUnitTest | CCUnitTest
| Run Test and collect its results.
typedef struct CCUnitTestFailure | CCUnitTestFailure
| Collects a failed test together with the failed assertion.
## 列挙型
enum | CCUnitTestType_t { ccunitTypeTest, ccunitTypeSuite, ccunitTypeTestCase, ccunitTypeFunc, ccunitTypeLast_ }
| Test class type. [詳細]
## 関数
CCUnitTest * | ccunit_initTest (CCUnitTest *test, CCUnitTestType_t type, void(*run)(CCUnitTest *, struct CCUnitTestResult *), void(*dtor)(CCUnitTest *))
| Initialize Test class.
void | ccunit_deleteTest (CCUnitTest *test)
| Test class destructor.
CCUnitTestFailure * | ccunit_newTestFailure (const char *file, unsigned int line, const char *condstr, const char *expect, const char *actual)
| Create new test failure.
void | ccunit_deleteTestFailure (CCUnitTestFailure *failure)
| Delete test failure object.

## 説明

テスト結果を参照します。

## 型定義

typedef struct CCUnitTest CCUnitTest

Run Test and collect its results.

参照:
  CCUnitTestResult

typedef struct CCUnitTestFailure CCUnitTestFailure

Collects a failed test together with the failed assertion.

参照:
  TestResult

typedef enum CCUnitTestType_t CCUnitTestType_t

Test class type.

## 列挙型

enum CCUnitTestType_t

Test class type.

列挙型の値:

  ccunitTypeTest | Test class.
  ccunitTypeSuite | TestSuite class.
  ccunitTypeTestCase | TestCase class.
  ccunitTypeFunc | TestFunc class.
  ccunitTypeLast_ | last tag

## 関数

void ccunit_deleteTest | ( | CCUnitTest * | test | ) |

Test class destructor.

引数:

  | test | test object to delete.

参照元 ccunit_deleteTestCase(), と destroy().

呼出しグラフ:

void ccunit_deleteTestFailure | ( | CCUnitTestFailure * | failure | ) |

Delete test failure object.

引数:

  | failure | failure object.

CCUnitTest * ccunit_initTest | ( | CCUnitTest * | test,
|  | CCUnitTestType_t | type,
|  | void(*)(CCUnitTest *, struct CCUnitTestResult *) | run,
|  | void(*)(CCUnitTest *) | dtor |
| ) |  |  |

Initialize Test class.

引数:

  | test | test object to initialize.
  | type | test type.
  | run | run test function.
  | dtor | destructor.

戻り値:
  initialized test object.

参照元 ccunit_newTestCase(), と ccunit_newTestFixture().

呼出しグラフ:

CCUnitTestFailure * ccunit_newTestFailure | ( | const char * | file,
|  | unsigned int | line,
|  | const char * | condstr,
|  | const char * | expect,
|  | const char * | actual |
| ) |  |  |

Create new test failure.

引数:

  | file | file name cause failure.
  | line | line number cause failure.
  | condstr | test condition as string.
  | expect | expect value as string.
  | actual | actual value as string.

戻り値:
  new failure object.

参照元 ccunit_assert_test__ccunit_obj_t().

呼出しグラフ:

| hosts this site. |  | Send comments to: CCUnit Developer |