テストベース
[詳解]
#include <iutest_body.hpp>
◆ genrand() [1/2]
unsigned int iutest::Test::genrand |
( |
| ) |
|
|
inline |
乱数の生成
- 覚え書き
- 乱数シードは –iutest_random_seed で指定した値になります。 指定しなかった場合は実行時に決定します。
◆ genrand() [2/2]
unsigned int iutest::Test::genrand |
( |
unsigned int |
max | ) |
|
|
inline |
これはオーバーロードされたメンバ関数です。利便性のために用意されています。元の関数との違いは引き数のみです。
- 引数
-
- 戻り値
- [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 | = 値 |
このクラス詳解は次のファイルから抽出されました: