iutest  1.16.1.0
 全て クラス 名前空間 ファイル 関数 変数 型定義 列挙型 列挙値 フレンド マクロ定義 グループ ページ
関数 | 変数
Matchers

Matchers. [詳解]

関数

template<typename T >
detail::EqMatcher< T > iutest::matchers::Equals (const T &expected)
 Make Equals matcher. [詳解]
 
template<typename T >
detail::EqMatcher< T > iutest::matchers::Eq (const T &expected)
 Make Eq matcher. [詳解]
 
template<typename T >
detail::NeMatcher< T > iutest::matchers::Ne (const T &expected)
 Make Ne matcher. [詳解]
 
template<typename T >
detail::LeMatcher< T > iutest::matchers::Le (const T &expected)
 Make Le matcher. [詳解]
 
template<typename T >
detail::LtMatcher< T > iutest::matchers::Lt (const T &expected)
 Make Lt matcher. [詳解]
 
template<typename T >
detail::GeMatcher< T > iutest::matchers::Ge (const T &expected)
 Make Ge matcher. [詳解]
 
template<typename T >
detail::GtMatcher< T > iutest::matchers::Gt (const T &expected)
 Make Gt matcher. [詳解]
 
detail::TwofoldEqMatcher iutest::matchers::Eq ()
 Make Twofold Eq matcher. [詳解]
 
detail::TwofoldNeMatcher iutest::matchers::Ne ()
 Make Twofold Ne matcher. [詳解]
 
detail::TwofoldLeMatcher iutest::matchers::Le ()
 Make Twofold Le matcher. [詳解]
 
detail::TwofoldLtMatcher iutest::matchers::Lt ()
 Make Twofold Lt matcher. [詳解]
 
detail::TwofoldGeMatcher iutest::matchers::Ge ()
 Make Twofold Ge matcher. [詳解]
 
detail::TwofoldGtMatcher iutest::matchers::Gt ()
 Make Twofold Gt matcher. [詳解]
 
detail::IsNullMatcher iutest::matchers::IsNull ()
 Make IsNull matcher. [詳解]
 
detail::NotNullMatcher iutest::matchers::NotNull ()
 Make NotNull matcher. [詳解]
 
template<typename T , typename U >
detail::TypedEqMatcher< T > iutest::matchers::TypedEq (const U &expected)
 Make TypedEq matcher. [詳解]
 
detail::FloatingPointEqMatcher
< float > 
iutest::matchers::FloatEq (float expected)
 Make Float Eq matcher. [詳解]
 
detail::FloatingPointEqMatcher
< double > 
iutest::matchers::DoubleEq (double expected)
 Make Double Eq matcher. [詳解]
 
detail::NanSensitiveFloatingPointEqMatcher
< float > 
iutest::matchers::NanSensitiveFloatEq (float expected)
 Make NanSensitive Float Eq matcher. [詳解]
 
detail::NanSensitiveFloatingPointEqMatcher
< double > 
iutest::matchers::NanSensitiveDoubleEq (double expected)
 Make NanSensitive Double Eq matcher. [詳解]
 
template<typename T >
detail::StrEqMatcher< T > iutest::matchers::StrEq (const T &expected)
 Make StrEq matcher. [詳解]
 
template<typename T >
detail::StrNeMatcher< T > iutest::matchers::StrNe (const T &expected)
 Make StrNe matcher. [詳解]
 
template<typename T >
detail::StrCaseEqMatcher< T > iutest::matchers::StrCaseEq (const T &expected)
 Make StrCaseEq matcher. [詳解]
 
template<typename T >
detail::StrCaseNeMatcher< T > iutest::matchers::StrCaseNe (const T &expected)
 Make StrCaseNe matcher. [詳解]
 
template<typename T >
detail::StartsWithMatcher
< const T & > 
iutest::matchers::StartsWith (const T &str)
 Make StartsWith matcher. [詳解]
 
template<typename T >
detail::HasSubstrMatcher
< const T & > 
iutest::matchers::HasSubstr (const T &str)
 Make HasSubstr matcher. [詳解]
 
template<typename T >
detail::EndsWithMatcher< const
T & > 
iutest::matchers::EndsWith (const T &str)
 Make EndsWith matcher. [詳解]
 
template<typename T >
detail::ContainsMatcher< T > iutest::matchers::Contains (const T &expected)
 Make Contains matcher. [詳解]
 
template<typename T >
detail::EachMatcher< T > iutest::matchers::Each (const T &expected)
 Make Each matcher. [詳解]
 
template<typename T >
detail::ContainerEqMatcher< T > iutest::matchers::ContainerEq (const T &expected)
 Make ContainerEq matcher. [詳解]
 
template<typename M , typename T >
detail::PointwiseMatcher< M, T > iutest::matchers::Pointwise (const M &matcher, const T &expected)
 Make Pointwise matcher. [詳解]
 
detail::IsEmptyMatcher iutest::matchers::IsEmpty ()
 Make IsEmpty matcher. [詳解]
 
template<typename T >
detail::SizeIsMatcher< T > iutest::matchers::SizeIs (const T &expected)
 Make SizeIs matcher. [詳解]
 
template<typename T >
detail::AtMatcher< T > iutest::matchers::At (size_t index, const T &expected)
 Make At matcher. [詳解]
 
template<typename Container >
detail::ElementsAreArrayMatcher
< typename
Container::value_type > 
iutest::matchers::ElementsAreArray (const Container &container)
 Make ElementsAreArray matcher. [詳解]
 
template<typename T , size_t SIZE>
detail::ElementsAreArrayMatcher
< T > 
iutest::matchers::ElementsAreArray (const T(&v)[SIZE])
 
template<typename Ite >
detail::ElementsAreArrayMatcher
< typename
detail::IteratorTraits< Ite >
::type > 
iutest::matchers::ElementsAreArray (Ite begin, Ite end)
 
template<typename T >
detail::ElementsAreArrayMatcher
< T > 
iutest::matchers::ElementsAreArray (const T *a, int count)
 Make ElementsAreArray matcher. [詳解]
 
template<typename Container >
detail::ElementsAreArrayMatcher
< typename
Container::value_type > 
iutest::matchers::ElementsAreArrayForward (const Container &container)
 Make ElementsAreArrayForward matcher. [詳解]
 
template<typename T , size_t SIZE>
detail::ElementsAreArrayMatcher
< T > 
iutest::matchers::ElementsAreArrayForward (const T(&v)[SIZE])
 
template<typename Ite >
detail::ElementsAreArrayMatcher
< typename
detail::IteratorTraits< Ite >
::type > 
iutest::matchers::ElementsAreArrayForward (Ite begin, Ite end)
 
template<typename T >
detail::ElementsAreArrayMatcher
< T > 
iutest::matchers::ElementsAreArrayForward (const T *a, int count)
 Make ElementsAreArrayForward matcher. [詳解]
 
template<typename... T>
detail::ElementsAreMatcher< T...> iutest::matchers::ElementsAre (const T &...m)
 Make ElementsAre matcher.
 
template<typename T >
detail::KeyMatcher< T > iutest::matchers::Key (const T &expected)
 Make Key matcher. [詳解]
 
template<typename T1 , typename T2 >
detail::PairMatcher< T1, T2 > iutest::matchers::Pair (const T1 &m1, const T2 &m2)
 Make Pair matcher. [詳解]
 
template<typename F , typename T >
detail::FieldMatcher< F, T > iutest::matchers::Field (const F &field, const T &expected)
 Make Field matcher. [詳解]
 
template<typename P , typename T >
detail::PropertyMatcher< P, T > iutest::matchers::Property (const P &prop, const T &expected)
 Make Property matcher. [詳解]
 
template<typename F , typename T >
detail::ResultOfMatcher< F, T > iutest::matchers::ResultOf (const F &func, const T &expected)
 Make ResultOf matcher. [詳解]
 
template<typename T >
detail::PointeeMatcher< T > iutest::matchers::Pointee (const T &expected)
 Make Pointee matcher.
 
template<typename T >
detail::NotMatcher< T > iutest::matchers::Not (const T &unexpected)
 Make Not matcher.
 
template<typename T >
detail::AnyMatcher< T > iutest::matchers::A ()
 Make Any matcher.
 
template<typename... T>
detail::AllOfMatcher< T...> iutest::matchers::AllOf (const T &...m)
 Make AllOf matcher. [詳解]
 
template<typename... T>
detail::AnyOfMatcher< T...> iutest::matchers::AnyOf (const T &...m)
 Make AnyOf matcher. [詳解]
 
template<typename T , typename M >
bool iutest::matchers::Value (const T &value, const M &expected)
 Value predicate.
 

変数

const detail::AnythingMatcher iutest::matchers::_
 Anything matcher.
 

詳解

Matchers.

関数詳解

template<typename... T>
detail::AllOfMatcher<T...> iutest::matchers::AllOf ( const T &...  m)

Make AllOf matcher.

argument が全ての matcher にマッチする

各種例:
matcher.cpp.
template<typename... T>
detail::AnyOfMatcher<T...> iutest::matchers::AnyOf ( const T &...  m)

Make AnyOf matcher.

argument がいずれかの matcher にマッチする

各種例:
matcher.cpp.
template<typename T >
detail::AtMatcher<T> iutest::matchers::At ( size_t  index,
const T &  expected 
)

Make At matcher.

argument[index] は expected にマッチする

template<typename T >
detail::ContainerEqMatcher<T> iutest::matchers::ContainerEq ( const T &  expected)

Make ContainerEq matcher.

argument コンテナは expected コンテナにマッチする

template<typename T >
detail::ContainsMatcher<T> iutest::matchers::Contains ( const T &  expected)

Make Contains matcher.

argument は expected にマッチする要素を含む

各種例:
matcher.cpp.
detail::FloatingPointEqMatcher<double> iutest::matchers::DoubleEq ( double  expected)
inline

Make Double Eq matcher.

argument は expected とおよそ等しい

各種例:
matcher.cpp.
template<typename T >
detail::EachMatcher<T> iutest::matchers::Each ( const T &  expected)

Make Each matcher.

argument はすべての要素が expected にマッチする

各種例:
matcher.cpp.
template<typename Container >
detail::ElementsAreArrayMatcher< typename Container::value_type > iutest::matchers::ElementsAreArray ( const Container &  container)

Make ElementsAreArray matcher.

argument はの各要素が a の要素とマッチする

各種例:
matcher.cpp.
template<typename T , size_t SIZE>
detail::ElementsAreArrayMatcher<T> iutest::matchers::ElementsAreArray ( const T(&)  v[SIZE])

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

template<typename Ite >
detail::ElementsAreArrayMatcher< typename detail::IteratorTraits<Ite>::type > iutest::matchers::ElementsAreArray ( Ite  begin,
Ite  end 
)

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

template<typename T >
detail::ElementsAreArrayMatcher<T> iutest::matchers::ElementsAreArray ( const T *  a,
int  count 
)

Make ElementsAreArray matcher.

argument は count 個の要素があり、 a の要素とマッチする

template<typename Container >
detail::ElementsAreArrayMatcher< typename Container::value_type > iutest::matchers::ElementsAreArrayForward ( const Container &  container)

Make ElementsAreArrayForward matcher.

argument はの各要素が a の要素とマッチする

template<typename T , size_t SIZE>
detail::ElementsAreArrayMatcher<T> iutest::matchers::ElementsAreArrayForward ( const T(&)  v[SIZE])

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

template<typename Ite >
detail::ElementsAreArrayMatcher< typename detail::IteratorTraits<Ite>::type > iutest::matchers::ElementsAreArrayForward ( Ite  begin,
Ite  end 
)

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

template<typename T >
detail::ElementsAreArrayMatcher<T> iutest::matchers::ElementsAreArrayForward ( const T *  a,
int  count 
)

Make ElementsAreArrayForward matcher.

argument は count 個の以上の要素があり、 a の要素とマッチする

template<typename T >
detail::EndsWithMatcher<const T&> iutest::matchers::EndsWith ( const T &  str)

Make EndsWith matcher.

argument の末尾が str である

各種例:
matcher.cpp.
template<typename T >
detail::EqMatcher<T> iutest::matchers::Eq ( const T &  expected)

Make Eq matcher.

argument == expected

各種例:
assertion.cpp, matcher.cpp.
detail::TwofoldEqMatcher iutest::matchers::Eq ( )
inline

Make Twofold Eq matcher.

argument == expected

template<typename T >
detail::EqMatcher<T> iutest::matchers::Equals ( const T &  expected)

Make Equals matcher.

argument == expected

template<typename F , typename T >
detail::FieldMatcher<F, T> iutest::matchers::Field ( const F &  field,
const T &  expected 
)

Make Field matcher.

argument.*field は expedted にマッチする

各種例:
matcher.cpp.
detail::FloatingPointEqMatcher<float> iutest::matchers::FloatEq ( float  expected)
inline

Make Float Eq matcher.

argument は expected とおよそ等しい

各種例:
matcher.cpp.
template<typename T >
detail::GeMatcher<T> iutest::matchers::Ge ( const T &  expected)

Make Ge matcher.

argument >= expected

各種例:
matcher.cpp.
detail::TwofoldGeMatcher iutest::matchers::Ge ( )
inline

Make Twofold Ge matcher.

argument >= expected

template<typename T >
detail::GtMatcher<T> iutest::matchers::Gt ( const T &  expected)

Make Gt matcher.

argument > expected

各種例:
matcher.cpp.
detail::TwofoldGtMatcher iutest::matchers::Gt ( )
inline

Make Twofold Gt matcher.

argument > expected

template<typename T >
detail::HasSubstrMatcher<const T&> iutest::matchers::HasSubstr ( const T &  str)

Make HasSubstr matcher.

argument が str を含む

各種例:
matcher.cpp.
detail::IsEmptyMatcher iutest::matchers::IsEmpty ( )
inline

Make IsEmpty matcher.

argument.empty()

detail::IsNullMatcher iutest::matchers::IsNull ( )
inline

Make IsNull matcher.

argument == nullptr

各種例:
matcher.cpp.
template<typename T >
detail::KeyMatcher<T> iutest::matchers::Key ( const T &  expected)

Make Key matcher.

argument.first は expedted にマッチする

各種例:
matcher.cpp.
template<typename T >
detail::LeMatcher<T> iutest::matchers::Le ( const T &  expected)

Make Le matcher.

argument <= expected

各種例:
matcher.cpp.
detail::TwofoldLeMatcher iutest::matchers::Le ( )
inline

Make Twofold Le matcher.

argument <= expected

template<typename T >
detail::LtMatcher<T> iutest::matchers::Lt ( const T &  expected)

Make Lt matcher.

argument < expected

各種例:
matcher.cpp.
detail::TwofoldLtMatcher iutest::matchers::Lt ( )
inline

Make Twofold Lt matcher.

argument < expected

detail::NanSensitiveFloatingPointEqMatcher<double> iutest::matchers::NanSensitiveDoubleEq ( double  expected)
inline

Make NanSensitive Double Eq matcher.

argument は expected とおよそ等しい(NaN 同士は等しいとされる)

各種例:
matcher.cpp.
detail::NanSensitiveFloatingPointEqMatcher<float> iutest::matchers::NanSensitiveFloatEq ( float  expected)
inline

Make NanSensitive Float Eq matcher.

argument は expected とおよそ等しい(NaN 同士は等しいとされる)

各種例:
matcher.cpp.
template<typename T >
detail::NeMatcher<T> iutest::matchers::Ne ( const T &  expected)

Make Ne matcher.

argument != expected

各種例:
matcher.cpp.
detail::TwofoldNeMatcher iutest::matchers::Ne ( )
inline

Make Twofold Ne matcher.

argument != expected

detail::NotNullMatcher iutest::matchers::NotNull ( )
inline

Make NotNull matcher.

argument != nullptr

各種例:
matcher.cpp.
template<typename T1 , typename T2 >
detail::PairMatcher<T1, T2> iutest::matchers::Pair ( const T1 &  m1,
const T2 &  m2 
)

Make Pair matcher.

argument.first は m1 にマッチし、arugment.second が m2 にマッチする

各種例:
matcher.cpp.
template<typename M , typename T >
detail::PointwiseMatcher<M, T> iutest::matchers::Pointwise ( const M &  matcher,
const T &  expected 
)

Make Pointwise matcher.

argument コンテナは expected コンテナの各要素と matcher にマッチする

template<typename P , typename T >
detail::PropertyMatcher<P, T> iutest::matchers::Property ( const P &  prop,
const T &  expected 
)

Make Property matcher.

argument.*property() は expedted にマッチする

各種例:
matcher.cpp.
template<typename F , typename T >
detail::ResultOfMatcher<F, T> iutest::matchers::ResultOf ( const F &  func,
const T &  expected 
)

Make ResultOf matcher.

func(argument) の戻り値は expedted にマッチする

各種例:
matcher.cpp.
template<typename T >
detail::SizeIsMatcher<T> iutest::matchers::SizeIs ( const T &  expected)

Make SizeIs matcher.

argument の要素数が expected にマッチする

template<typename T >
detail::StartsWithMatcher<const T&> iutest::matchers::StartsWith ( const T &  str)

Make StartsWith matcher.

argument の先頭が str である

各種例:
matcher.cpp.
template<typename T >
detail::StrCaseEqMatcher<T> iutest::matchers::StrCaseEq ( const T &  expected)

Make StrCaseEq matcher.

argument == expected (ignore case)

各種例:
matcher.cpp.
template<typename T >
detail::StrCaseNeMatcher<T> iutest::matchers::StrCaseNe ( const T &  expected)

Make StrCaseNe matcher.

argument != expected (ignore case)

各種例:
matcher.cpp.
template<typename T >
detail::StrEqMatcher<T> iutest::matchers::StrEq ( const T &  expected)

Make StrEq matcher.

argument == expected

各種例:
matcher.cpp.
template<typename T >
detail::StrNeMatcher<T> iutest::matchers::StrNe ( const T &  expected)

Make StrNe matcher.

argument != expected

各種例:
matcher.cpp.
template<typename T , typename U >
detail::TypedEqMatcher<T> iutest::matchers::TypedEq ( const U &  expected)

Make TypedEq matcher.

argument == expected