CCUnit: テストの実行の追跡

CCUnit 2.1 A C Unit Testing Library

- メインページ
- 関連ページ
- モジュール
- データ構造
- ファイル

全て データ構造 ファイル 関数 変数 型定義 列挙型 列挙型の値 マクロ定義 グループ ページ
データ構造 | 型定義 | 関数
テストの実行の追跡

テストの実行を追跡します。 [詳細]

テストの実行の追跡のコラボレーション図

## データ構造
struct | CCUnitTestListener
| A Listener for test progress. [詳細]
struct | CCUnitTestResult
| Collects the results of a test case. [詳細]

## 型定義
typedef struct CCUnitTestListener | CCUnitTestListener
| A Listener for test progress.
typedef struct CCUnitTestResult | CCUnitTestResult
| Collects the results of a test case.

## 関数
CCUnitTestResult * | ccunit_newTestResult ()
| Construct TestResult.
void | ccunit_deleteTestResult (CCUnitTestResult *result)
| Destruct TestResult.
void | ccunit_addFailure (CCUnitTestResult *result, struct CCUnitTestFailure *failure)
| Adds a failure to the list of failures.
void | ccunit_addResultListener (CCUnitTestResult *result, CCUnitTestListener *listener)
| Registers a TestRunner as TestListener.
CCUnitListIterator * | ccunit_failures (CCUnitTestResult *result)
| Returns an Iterator for the failures.
size_t | ccunit_failureCount (CCUnitTestResult *result)
| Gets the number of detected failures.
bool | ccunit_wasSuccessful (CCUnitTestResult *result)
| Returns whether the entire test was successful or not.
void | ccunit_stopTest (CCUnitTestResult *result)
| Marks that the test run should stop.
size_t | ccunit_runCount (CCUnitTestResult *result)
| Gets the number of run tests.

## 説明

テストの実行を追跡します。

## 型定義

typedef struct CCUnitTestListener CCUnitTestListener

A Listener for test progress.

Implementing the Observer pattern a CCUnitTestListener may be registered to a CCUnitTestResult to obtain information on the testing progress. Use specialized sub classes of CCUnitTestListener for text output.

参照:
  CCUnitTestResult

typedef struct CCUnitTestResult CCUnitTestResult

Collects the results of a test case.

This module use a CCUnitTestListener to be informed of the ongoing tests.

参照:
  CCUnitTest, CCUnitTestListener.

## 関数

void ccunit_addFailure | ( | CCUnitTestResult * | result,
|  | struct CCUnitTestFailure * | failure
| ) |  |

Adds a failure to the list of failures.

The passed in failed assertion caused the failure.

引数:

  result | result object.
  failure | failure.

参照先 CCUnitTestListener::addFailure, ccunit_addList(), ccunit_initListIterator(), ccunit_nextListIterator(), CCUnitTestResult::failures, と CCUnitTestResult::listeners.

参照元 run(), と runTest().

関数の呼び出しグラフ:

呼出しグラフ:

void ccunit_addResultListener | ( | CCUnitTestResult * | result,
|  | CCUnitTestListener * | listener
| ) |  |
| inline

Registers a TestRunner as TestListener.

引数:

  result | result object.
  listener | adding listener.

参照先 ccunit_addList(), と CCUnitTestResult::listeners.

参照元 doRun().

関数の呼び出しグラフ:

呼出しグラフ:

void ccunit_deleteTestResult | ( | CCUnitTestResult * | result | ) |

Destruct TestResult.

引数:

  result | result object.

参照先 ccunit_deleteList(), ccunit_deleteTestFailure(), CCUnitTestResult::failures, と CCUnitTestResult::listeners.

参照元 ccunit_deleteTestRunner().

関数の呼び出しグラフ:

呼出しグラフ:

size_t ccunit_failureCount | ( | CCUnitTestResult * | result | ) |
| inline

Gets the number of detected failures.

引数:

  result | result object.

参照先 CCUnitTestResult::failures, と CCUnitList::length.

参照元 ccunit_wasSuccessful(), printFailures(), と printHeader().

呼出しグラフ:

CCUnitListIterator * ccunit_failures | ( | CCUnitTestResult * | result | ) |
| inline

Returns an Iterator for the failures.

引数:

  result | result object.

参照先 ccunit_newListIterator(), と CCUnitTestResult::failures.

参照元 printFailures().

関数の呼び出しグラフ:

呼出しグラフ:

CCUnitTestResult * ccunit_newTestResult | ( |  | ) |

Construct TestResult.

参照先 ccunit_initList(), CCUnitTestResult::failures, CCUnitTestResult::listeners, と CCUnitTestResult::shouldStop.

参照元 ccunit_runTestCase(), ccunit_runTestSuite(), と doRun().

関数の呼び出しグラフ:

呼出しグラフ:

size_t ccunit_runCount | ( | CCUnitTestResult * | result | ) |
| inline

Gets the number of run tests.

引数:

  result | result object.

参照先 CCUnitTestResult::runCount.

参照元 printHeader().

呼出しグラフ:

void ccunit_stopTest | ( | CCUnitTestResult * | result | ) |
| inline

Marks that the test run should stop.

引数:

  result | result object.

参照先 CCUnitTestResult::shouldStop.

bool ccunit_wasSuccessful | ( | CCUnitTestResult * | result | ) |
| inline

Returns whether the entire test was successful or not.

引数:

  result | result object.

参照先 ccunit_failureCount().

参照元 doRun(), と printHeader().

関数の呼び出しグラフ:

呼出しグラフ:

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