iutest  1.17.1.0
クラス | 公開メンバ関数 | 静的公開メンバ関数 | 限定公開型 | 限定公開メンバ関数 | 全メンバ一覧
iutest::TestCase クラス

テストケース [詳解]

#include <iutest_case.hpp>

iutest::TestCase の継承関係図
Inheritance graph
[凡例]

公開メンバ関数

virtual ~TestCase ()
 デストラクタ
 
const char * name () const
 
int total_test_count () const IUTEST_CXX_NOEXCEPT_SPEC
 
int reportable_test_count () const
 
int test_to_run_count () const IUTEST_CXX_NOEXCEPT_SPEC
 
int failed_test_count () const
 
int disabled_test_count () const IUTEST_CXX_NOEXCEPT_SPEC
 
int reportable_disabled_test_count () const
 
int successful_test_count () const
 
int skip_test_count () const
 
int reportable_skip_test_count () const
 
int test_run_skipped_count () const
 
int reportable_test_run_skipped_count () const
 
TimeInMillisec elapsed_time () const IUTEST_CXX_NOEXCEPT_SPEC
 
TimeInMillisec start_timestamp () const IUTEST_CXX_NOEXCEPT_SPEC
 
const TestInfoGetTestInfo (int index) const
 
bool should_run () const IUTEST_CXX_NOEXCEPT_SPEC
 
bool Passed () const
 
bool Failed () const
 
virtual const char * type_param () const
 
::std::string testcase_name_with_where () const
 
::std::string testcase_name_with_default_package_name () const
 
const TestResultad_hoc_testresult () const IUTEST_CXX_NOEXCEPT_SPEC
 テスト実行中じゃないときのリザルトの取得 [詳解]
 
const TestResultad_hoc_test_result () const IUTEST_CXX_NOEXCEPT_SPEC
 テスト実行中じゃないときのリザルトの取得
 

静的公開メンバ関数

static bool ValidateTestPropertyName (const ::std::string &name)
 有効なプロパティ名かどうかチェック [詳解]
 

限定公開型

typedef ::std::vector< TestInfo * > iuTestInfos
 TestInfo リスト
 

限定公開メンバ関数

 TestCase (const ::std::string &testcase_name, TestTypeId id, SetUpMethod setup, TearDownMethod teardown)
 コンストラクタ [詳解]
 

詳解

テストケース

構築子と解体子

◆ TestCase()

iutest::TestCase::TestCase ( const ::std::string &  testcase_name,
TestTypeId  id,
SetUpMethod  setup,
TearDownMethod  teardown 
)
inlineprotected

コンストラクタ

引数
[in]testcase_name= テストケース名
[in]id= テストケースID
[in]setup= テスト事前実行関数
[in]teardown= テスト事後実行関数

関数詳解

◆ ad_hoc_testresult()

const TestResult* iutest::TestCase::ad_hoc_testresult ( ) const
inline

テスト実行中じゃないときのリザルトの取得

非推奨:
呼び出し関係図:

◆ disabled_test_count()

int iutest::TestCase::disabled_test_count ( ) const
inline

無効テスト総数

◆ elapsed_time()

TimeInMillisec iutest::TestCase::elapsed_time ( ) const
inline

テストの実行ミリ秒

◆ Failed()

bool iutest::TestCase::Failed ( ) const
inline

テストが失敗したかどうか

呼び出し関係図:

◆ failed_test_count()

int iutest::TestCase::failed_test_count ( ) const

失敗テスト総数

被呼び出し関係図:

◆ GetTestInfo()

const TestInfo* iutest::TestCase::GetTestInfo ( int  index) const
inline

TestInfo の取得

被呼び出し関係図:

◆ name()

const char* iutest::TestCase::name ( ) const
inline

test case 名の取得

被呼び出し関係図:

◆ Passed()

bool iutest::TestCase::Passed ( ) const
inline

テストが成功したかどうか

呼び出し関係図:
被呼び出し関係図:

◆ reportable_disabled_test_count()

int iutest::TestCase::reportable_disabled_test_count ( ) const

レポート対象の無効テスト総数

◆ reportable_skip_test_count()

int iutest::TestCase::reportable_skip_test_count ( ) const

レポート対象のスキップテスト総数

◆ reportable_test_count()

int iutest::TestCase::reportable_test_count ( ) const

レポート対象のテスト総数

◆ reportable_test_run_skipped_count()

int iutest::TestCase::reportable_test_run_skipped_count ( ) const

レポート対象の明示的にスキップされたテスト総数

◆ should_run()

bool iutest::TestCase::should_run ( ) const
inline

should_run

◆ skip_test_count()

int iutest::TestCase::skip_test_count ( ) const

スキップテスト総数

◆ start_timestamp()

TimeInMillisec iutest::TestCase::start_timestamp ( ) const
inline

テスト開始時刻

◆ successful_test_count()

int iutest::TestCase::successful_test_count ( ) const

成功テスト総数

◆ test_run_skipped_count()

int iutest::TestCase::test_run_skipped_count ( ) const

明示的にスキップされたテスト総数

◆ test_to_run_count()

int iutest::TestCase::test_to_run_count ( ) const
inline

実行したテスト総数

◆ testcase_name_with_default_package_name()

::std::string iutest::TestCase::testcase_name_with_default_package_name ( ) const
inline

default package 名を含む TestCase 名の取得

呼び出し関係図:

◆ testcase_name_with_where()

::std::string iutest::TestCase::testcase_name_with_where ( ) const
inline

TestCase 名の取得

呼び出し関係図:

◆ total_test_count()

int iutest::TestCase::total_test_count ( ) const
inline

テスト総数

被呼び出し関係図:

◆ type_param()

virtual const char* iutest::TestCase::type_param ( ) const
inlinevirtual

type param 文字列の取得

iutest::TypedTestCase< T >で再実装されています。

被呼び出し関係図:

◆ ValidateTestPropertyName()

static bool iutest::TestCase::ValidateTestPropertyName ( const ::std::string &  name)
inlinestatic

有効なプロパティ名かどうかチェック

引数
[in]name= プロパティ名
戻り値
true=有効
false=無効
呼び出し関係図:

このクラス詳解は次のファイルから抽出されました: