namespace TypeTraits More...
Namespaces | |
SharedPtrAsserts | |
Functions | |
template<typename T > | |
std::string | PrintToString (const T &value) |
template<typename T > | |
std::enable_if< System::Details::HasToString< T >::value, std::string >::type | PrintToStringImpl (const SharedPtr< T > &value, long long s) |
template<typename T > | |
std::enable_if< System::Details::HasToString< T >::value, std::string >::type | PrintToStringImpl (const WeakPtr< T > &value, long long s) |
template<typename T > | |
std::enable_if<!TypeTraits::has_print_to_method< T >::value &&System::Details::HasToString< T >::value, std::string >::type | PrintToStringImpl (const T &value, long long s) |
template<typename T > | |
std::enable_if< TypeTraits::has_print_to_method< T >::value, std::string >::type | PrintToStringImpl (const T &value, long long s) |
template<typename T > | |
std::enable_if< TypeTraits::has_data_method< T >::value &&!TypeTraits::IsCppContainer< T >::value, std::string >::type | PrintToStringImpl (const T &value, long long s) |
template<typename T1 , typename T2 > | |
std::string | PrintToStringImpl (const std::pair< T1, T2 > &value, long long s) |
template<typename T > | |
std::enable_if< TypeTraits::IsCppContainer< T >::value, std::string >::type | PrintToStringImpl (const T &container, long long s) |
template<typename T > | |
std::string | PrintToStringImpl (const T &value, int s) |
std::string | PrintToString (std::nullptr_t) |
template<typename T > | |
std::string | PrintToString (System::Collections::Generic::ICollection< T > &value) |
template<typename T1 , typename T2 > | |
testing::AssertionResult | EqFailure (const char *lhs_expr, const char *rhs_expr, T1 &lhs, T2 &rhs) |
template<typename T1 , typename T2 > | |
testing::AssertionResult | NotEqFailure (const char *lhs_expr, const char *rhs_expr, T1 &lhs, T2 &rhs) |
template<typename T1 , typename T2 > | |
testing::AssertionResult | SameFailure (const char *lhs_expr, const char *rhs_expr, T1 &lhs, T2 &rhs) |
template<typename T1 , typename T2 > | |
testing::AssertionResult | NotSameFailure (const char *lhs_expr, const char *rhs_expr, T1 &lhs, T2 &rhs) |
namespace TypeTraits
testing::AssertionResult System::TestPredicates::Details::EqFailure | ( | const char * | lhs_expr, |
const char * | rhs_expr, | ||
T1 & | lhs, | ||
T2 & | rhs | ||
) |
Formats == assertion failure for output.
T1 | LHS value type. |
T2 | RHS value type. |
lhs_expr | LHS expression. |
rhs_expr | RHS expression. |
lhs | LHS value. |
rhs | RHS value. |
testing::AssertionResult System::TestPredicates::Details::NotEqFailure | ( | const char * | lhs_expr, |
const char * | rhs_expr, | ||
T1 & | lhs, | ||
T2 & | rhs | ||
) |
Formats != assertion failure for output.
T1 | LHS value type. |
T2 | RHS value type. |
lhs_expr | LHS expression. |
rhs_expr | RHS expression. |
lhs | LHS value. |
rhs | RHS value. |
testing::AssertionResult System::TestPredicates::Details::NotSameFailure | ( | const char * | lhs_expr, |
const char * | rhs_expr, | ||
T1 & | lhs, | ||
T2 & | rhs | ||
) |
Formats 'not same' assertion failure for output.
T1 | LHS value type. |
T2 | RHS value type. |
lhs_expr | LHS expression. |
rhs_expr | RHS expression. |
lhs | LHS value. |
rhs | RHS value. |
std::string System::TestPredicates::Details::PrintToString | ( | const T & | value | ) |
Prints value to std::string.
T | Type to print. |
value | Value to print. |
Prints object to string by selecting proper serializer function.
T | Object type. |
value | Object to print. |
|
inline |
Prints nullptr to string.
std::string System::TestPredicates::Details::PrintToString | ( | System::Collections::Generic::ICollection< T > & | value | ) |
std::enable_if<System::Details::HasToString<T>::value, std::string>::type System::TestPredicates::Details::PrintToStringImpl | ( | const SharedPtr< T > & | value, |
long long | s | ||
) |
Prints System::Object subclass to string using ToString() method.
T | Final class type. |
value | Pointer to object to print. |
s | A service parameter which serves as a selector of function overload based on the type of this parameter; the value of the parameter is ignored |
value
is null. std::enable_if<System::Details::HasToString<T>::value, std::string>::type System::TestPredicates::Details::PrintToStringImpl | ( | const WeakPtr< T > & | value, |
long long | s | ||
) |
Prints System::Object subclass to string using ToString() method.
T | Final class type. |
value | Pointer to object to print. |
s | A service parameter which serves as a selector of function overload based on the type of this parameter; the value of the parameter is ignored |
value
is null. std::enable_if<!TypeTraits::has_print_to_method<T>::value && System::Details::HasToString<T>::value, std::string>::type System::TestPredicates::Details::PrintToStringImpl | ( | const T & | value, |
long long | s | ||
) |
Prints object to string using ToString() method.
T | Object type. |
value | Object to print. |
s | A service parameter which serves as a selector of function overload based on the type of this parameter; the value of the parameter is ignored |
std::enable_if<TypeTraits::has_print_to_method<T>::value, std::string>::type System::TestPredicates::Details::PrintToStringImpl | ( | const T & | value, |
long long | s | ||
) |
Prints object to string using PrintTo method.
T | Object type. |
value | Object to print. |
s | A service parameter which serves as a selector of function overload based on the type of this parameter; the value of the parameter is ignored |
std::enable_if<TypeTraits::has_data_method<T>::value && !TypeTraits::IsCppContainer<T>::value, std::string>::type System::TestPredicates::Details::PrintToStringImpl | ( | const T & | value, |
long long | s | ||
) |
Prints object to string using data() method. Handles wrappers set around STL-styled containers.
T | Object type. |
value | Object to print. |
s | A service parameter which serves as a selector of function overload based on the type of this parameter; the value of the parameter is ignored |
std::string System::TestPredicates::Details::PrintToStringImpl | ( | const std::pair< T1, T2 > & | value, |
long long | s | ||
) |
Prints pair to string.
T1 | First pair type argument. |
T2 | Second pair type argument. |
value | Object to print. |
s | A service parameter which serves as a selector of function overload based on the type of this parameter; the value of the parameter is ignored |
std::enable_if<TypeTraits::IsCppContainer<T>::value, std::string>::type System::TestPredicates::Details::PrintToStringImpl | ( | const T & | container, |
long long | s | ||
) |
Prints STL-style containers to string by printing their elements (not more than 32).
T | Object type. |
container | Object to print. |
s | A service parameter which serves as a selector of function overload based on the type of this parameter; the value of the parameter is ignored |
std::string System::TestPredicates::Details::PrintToStringImpl | ( | const T & | value, |
int | s | ||
) |
Prints other types to string by using gtest-provided functions.
T | Object type. |
value | Object to print. |
s | A service parameter which serves as a selector of function overload based on the type of this parameter; the value of the parameter is ignored |
testing::AssertionResult System::TestPredicates::Details::SameFailure | ( | const char * | lhs_expr, |
const char * | rhs_expr, | ||
T1 & | lhs, | ||
T2 & | rhs | ||
) |
Formats 'same' assertion failure for output.
T1 | LHS value type. |
T2 | RHS value type. |
lhs_expr | LHS expression. |
rhs_expr | RHS expression. |
lhs | LHS value. |
rhs | RHS value. |