iutest  1.17.99.14
クラス | 公開メンバ関数 | 静的公開メンバ関数 | 限定公開メンバ関数 | 限定公開変数類 | 全メンバ一覧
iutest::Test クラス

テストベース [詳解]

#include <iutest_body.hpp>

iutest::Test の継承関係図
Inheritance graph
[凡例]
iutest::Test 連携図
Collaboration graph
[凡例]

公開メンバ関数

unsigned int genrand ()
 乱数の生成 [詳解]
 
unsigned int genrand (unsigned int max)
 
float genrandf ()
 
unsigned int random_seed () const IUTEST_CXX_NOEXCEPT_SPEC
 
detail::iuRandom & random_engine ()
 

静的公開メンバ関数

static const TestInfoGetCurrentTestInfo ()
 実行中の TestInfo の取得
 
static TestGetCurrentTest ()
 実行中の Test の取得
 
static bool HasFatalFailure ()
 致命的なエラーが出たかどうか [詳解]
 
static bool HasNonfatalFailure ()
 致命的ではないエラーが出たかどうか [詳解]
 
static bool HasFailure ()
 エラーが出たかどうか [詳解]
 
static bool IsSkipped ()
 スキップされたかどうか [詳解]
 
static void RecordProperty (const ::std::string &key, const ::std::string &value)
 テスト結果の情報追加 [詳解]
 
template<typename T >
static void RecordProperty (const ::std::string &key, const T &value)
 テスト結果の情報追加 [詳解]
 
static void SetUpTestSuite ()
 test suite setup
 
static void TearDownTestSuite ()
 test suite tear down
 
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 

限定公開メンバ関数

virtual void SetUp ()
 実行前処理
 
virtual void Body ()
 テスト実装部
 
virtual void TearDown ()
 実行後処理
 

限定公開変数類

const TestInfotest_info_
 テスト中に簡単にアクセス可能なように
 

詳解

テストベース

各種例
disabledtest.cpp, fixture.cpp, parameterized.cpp, printto.cpp, typed.cpp.

関数詳解

◆ genrand() [1/2]

unsigned int iutest::Test::genrand ( )
inline

乱数の生成

覚え書き
乱数シードは –iutest_random_seed で指定した値になります。 指定しなかった場合は実行時に決定します。

◆ genrand() [2/2]

unsigned int iutest::Test::genrand ( unsigned int  max)
inline

これはオーバーロードされたメンバ関数です。利便性のために用意されています。元の関数との違いは引き数のみです。

引数
[in]max= 上限値
戻り値
[0,max) の乱数を生成

◆ genrandf()

float iutest::Test::genrandf ( )
inline

これはオーバーロードされたメンバ関数です。利便性のために用意されています。元の関数との違いは引き数のみです。

戻り値
max = [0,1] の乱数を生成

◆ HasFailure()

static bool iutest::Test::HasFailure ( )
inlinestatic

エラーが出たかどうか

戻り値
真偽値
呼び出し関係図:

◆ HasFatalFailure()

static bool iutest::Test::HasFatalFailure ( )
inlinestatic

致命的なエラーが出たかどうか

戻り値
真偽値
呼び出し関係図:

◆ HasNonfatalFailure()

static bool iutest::Test::HasNonfatalFailure ( )
inlinestatic

致命的ではないエラーが出たかどうか

戻り値
真偽値
呼び出し関係図:

◆ IsSkipped()

static bool iutest::Test::IsSkipped ( )
inlinestatic

スキップされたかどうか

戻り値
真偽値
呼び出し関係図:

◆ random_engine()

detail::iuRandom& iutest::Test::random_engine ( )
inline

乱数生成器の取得

◆ random_seed()

unsigned int iutest::Test::random_seed ( ) const
inline

乱数シードの取得

◆ RecordProperty() [1/2]

static void iutest::Test::RecordProperty ( const ::std::string &  key,
const ::std::string &  value 
)
static

テスト結果の情報追加

引数
[in]key= プロパティのキー
[in]value= 値

◆ RecordProperty() [2/2]

template<typename T >
static void iutest::Test::RecordProperty ( const ::std::string &  key,
const T &  value 
)
inlinestatic

テスト結果の情報追加

引数
[in]key= プロパティのキー
[in]value= 値
呼び出し関係図:

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