CCUnit: TestRunner

CCUnit 2.1 A C Unit Testing Library

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

全て データ構造 ファイル 関数 変数 型定義 列挙型 列挙型の値 マクロ定義 グループ ページ
データ構造 | 関数
TestRunner
TestListener

Runs a single test and collects its results. [詳細]

TestRunnerのコラボレーション図

## データ構造
struct | CCUnitTestRunner
| Runs a single test and collects its results. [詳細]

## 関数
static void | startTest (CCUnitTestListener *listener, CCUnitTestFunc *test)
| receive startTest notification.
static void | endTest (CCUnitTestListener *listener, CCUnitTestFunc *test)
| receive endTest notification.
static void | addFailure (CCUnitTestListener *listener, CCUnitTestFailure *failure)
| receive addFailure notification.
static void | printHeader (CCUnitTestRunner *runner, CCUnitTestResult *result)
| Prints the header of the report.
static void | printFailures (CCUnitTestRunner *runner, CCUnitTestResult *result)
| Prints failures.
static void | print (CCUnitTestRunner *runner, CCUnitTestResult *result)
| Prints failures.
static int | doRun (CCUnitTestRunner *runner, CCUnitTestSuite *suite)
| Runs a single test and collects its results.
CCUnitTestResult * | ccunit_getResult (CCUnitTestRunner *runner)
| Get test result.

## 説明

Runs a single test and collects its results.

This method can be used to start a test run from your program.

## 関数

static void addFailure | ( | CCUnitTestListener * | listener,
|  | CCUnitTestFailure * | failure
| ) |  |
| static

receive addFailure notification.

引数:

  listener | notification listener.
  failure | failure information.

参照先 ofp.

参照元 ccunit_newTestRunner().

呼出しグラフ:

CCUnitTestResult * ccunit_getResult | ( | CCUnitTestRunner * | runner | ) |
| inline

Get test result.

引数:

  runner | test runner.

戻り値:
  test result object.

参照先 result.

static int doRun | ( | CCUnitTestRunner * | runner,
|  | CCUnitTestSuite * | suite
| ) |  |
| static

Runs a single test and collects its results.

引数:

  runner | test runner
  suite | test suite

戻り値:
  0 if succeeded. -1 if error occurd.

参照先 ccunit_addResultListener(), ccunit_newTestResult(), ccunit_runTestSuite(), ccunit_wasSuccessful(), listener, ofp, print(), と result.

参照元 ccunit_newTestRunner().

関数の呼び出しグラフ:

呼出しグラフ:

static void endTest | ( | CCUnitTestListener * | listener,
|  | CCUnitTestFunc * | test
| ) |  |
| static

receive endTest notification.

引数:

  listener | notification listener.
  test | ended test case

参照元 ccunit_newTestRunner().

呼出しグラフ:

static void print | ( | CCUnitTestRunner * | runner,
|  | CCUnitTestResult * | result
| ) |  |
| inlinestatic

Prints failures.

引数:

  runner | test runner
  result | test result

参照先 printFailures(), と printHeader().

参照元 doRun().

関数の呼び出しグラフ:

呼出しグラフ:

static void printFailures | ( | CCUnitTestRunner * | runner,
|  | CCUnitTestResult * | result
| ) |  |
| static

Prints failures.

引数:

  runner | test runner.
  result | test result.

参照先 CCUnitTestFailure::actual, ccunit_deleteListIterator(), ccunit_failureCount(), ccunit_failures(), ccunit_nextListIterator(), CCUnitTestFailure::condstr, CCUnitTestFunc::desc, CCUnitTestFailure::expect, CCUnitTestFailure::file, CCUnitTestFailure::line, ofp, と CCUnitTestFailure::testFunc.

参照元 print().

関数の呼び出しグラフ:

呼出しグラフ:

static void printHeader | ( | CCUnitTestRunner * | runner,
|  | CCUnitTestResult * | result
| ) |  |
| static

Prints the header of the report.

引数:

  runner | test runner.
  result | test result.

参照先 ccunit_failureCount(), ccunit_runCount(), ccunit_wasSuccessful(), と ofp.

参照元 print().

関数の呼び出しグラフ:

呼出しグラフ:

static void startTest | ( | CCUnitTestListener * | listener,
|  | CCUnitTestFunc * | test
| ) |  |
| static

receive startTest notification.

引数:

  listener | notification listener.
  test | starting test case

参照先 ofp.

参照元 ccunit_newTestRunner().

呼出しグラフ:

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