#include <bslfmt_formattertestutil.h>
This is a specialization of FormatterTestUtil template for wchar_t.
|
| template<class t_TYPE > |
| static bool | testEvaluateFormat (bsl::string *message, bsl::basic_string_view< wchar_t > expectedResult, bool alsoTestOracle, BSLFMT_FORMATTER_TEST_UTIL_WFORMAT_STRING fmt, BSLS_COMPILERFEATURES_FORWARD_REF(t_TYPE) value) |
| |
| template<class t_TYPE , class t_ARG > |
| static bool | testEvaluateFormat (bsl::string *message, bsl::basic_string_view< wchar_t > expectedResult, bool alsoTestOracle, BSLFMT_FORMATTER_TEST_UTIL_WFORMAT_STRING_ONE_ARG fmt, BSLS_COMPILERFEATURES_FORWARD_REF(t_TYPE) value, BSLS_COMPILERFEATURES_FORWARD_REF(t_ARG) arg) |
| |
| template<class t_TYPE , class t_ARG_1 , class t_ARG_2 > |
| static bool | testEvaluateFormat (bsl::string *message, bsl::basic_string_view< wchar_t > expectedResult, bool alsoTestOracle, BSLFMT_FORMATTER_TEST_UTIL_WFORMAT_STRING_TWO_ARGS fmt, BSLS_COMPILERFEATURES_FORWARD_REF(t_TYPE) value, BSLS_COMPILERFEATURES_FORWARD_REF(t_ARG_1) arg1, BSLS_COMPILERFEATURES_FORWARD_REF(t_ARG_2) arg2) |
| |
| template<class t_TYPE > |
| static bool | testEvaluateVFormat (bsl::string *message, bsl::basic_string_view< wchar_t > expectedResult, bool alsoTestOracle, bsl::basic_string_view< wchar_t > fmt, BSLS_COMPILERFEATURES_FORWARD_REF(t_TYPE) value) |
| |
| template<class t_TYPE , class t_ARG > |
| static bool | testEvaluateVFormat (bsl::string *message, bsl::basic_string_view< wchar_t > expectedResult, bool alsoTestOracle, bsl::basic_string_view< wchar_t > fmt, BSLS_COMPILERFEATURES_FORWARD_REF(t_TYPE) value, BSLS_COMPILERFEATURES_FORWARD_REF(t_ARG) arg) |
| |
| template<class t_TYPE , class t_ARG_1 , class t_ARG_2 > |
| static bool | testEvaluateVFormat (bsl::string *message, bsl::basic_string_view< wchar_t > expectedResult, bool alsoTestOracle, bsl::basic_string_view< wchar_t > fmt, BSLS_COMPILERFEATURES_FORWARD_REF(t_TYPE) value, BSLS_COMPILERFEATURES_FORWARD_REF(t_ARG_1) arg1, BSLS_COMPILERFEATURES_FORWARD_REF(t_ARG_2) arg2) |
| |
| template<class t_TYPE > |
| static bool | testParseFailure (bsl::string *message, bool alsoTestOracle, bsl::basic_string_view< wchar_t > fmt) |
| |
| template<class t_TYPE > |
| static BSLFMT_FORMATTER_TEST_CONSTEVAL bool | testParseFormat (bsl::string *message, bool alsoTestOracle, BSLFMT_FORMATTER_TEST_UTIL_WFORMAT_STRING_P fmt) |
| |
| template<class t_TYPE > |
| static bool | testParseVFormat (bsl::string *message, bool alsoTestOracle, bsl::basic_string_view< wchar_t > fmt) |
| |
◆ testEvaluateFormat() [1/3]
Compare the specified expectedResult with the result of formatting the specified value with the specified fmt obtained using a bslfmt::formatter specialization for the (template parameter) t_TYPE. If the specified alsoTestOracle is true, also compare the expectedResult with the result of formatting obtained using a standard library implementation. Optionally specify arg, arg1 and arg2 to be passed to the formatter as additional arguments. Return true if these strings are equal, otherwise store a description of the error in the specified output message and return false.
- Note
- Note that
fmt is required to be a constant expression, known at compile time.
◆ testEvaluateFormat() [2/3]
template<class t_TYPE , class t_ARG >
◆ testEvaluateFormat() [3/3]
template<class t_TYPE , class t_ARG_1 , class t_ARG_2 >
◆ testEvaluateVFormat() [1/3]
Compare the specified expectedResult with the result of formatting the specified value with the specified fmt obtained using a bslfmt::formatter specialization for the (template parameter) t_TYPE. If the specified alsoTestOracle is true, also compare the expectedResult with the result of formatting obtained using a standard library implementation. Optionally specify arg, arg1 and arg2 to be passed to the formatter as additional arguments. Return true if these strings are equal, otherwise store a description of the error in the specified output message and return false.
- Note
- Note that
fmt can be determined at runtime.
◆ testEvaluateVFormat() [2/3]
template<class t_TYPE , class t_ARG >
◆ testEvaluateVFormat() [3/3]
template<class t_TYPE , class t_ARG_1 , class t_ARG_2 >
◆ testParseFailure()
Verify that the specified fmt has a valid structure and, if so, parse it using a bslfmt::formatter specialization for the (template parameter) t_TYPE. If the specified alsoTestOracle is true, also parse fmt using a standard library implementation. Return true if fmt is valid and the exception IS thrown during the parsing, and return false otherwise.
◆ testParseFormat()
Verify that the specified fmt has a valid structure and, if so, parse it using a bslfmt::formatter specialization for the (template parameter) t_TYPE. If the specified alsoTestOracle is true, also parse the fmt using a standard library implementation. Return true if the fmt is valid and the exception is NOT thrown during the parsing, and return false otherwise.
- Note
- Note that the
fmt is required to be a compile time constant expression.
◆ testParseVFormat()
Verify that the specified fmt has a valid structure and, if so, parse it using a bslfmt::formatter specialization for the (template parameter) t_TYPE. If the specified alsoTestOracle is true, also parse fmt using a standard library implementation. Return true if fmt is valid and the exception is NOT thrown during the parsing, and return false otherwise.
- Note
- Note that
fmt is NOT required to be a compile time constant expression.
The documentation for this struct was generated from the following file: