testEvaluateFormat overloads
Synopses
Declared in <bslfmt_formattertestutil.h>
Compare expectedResult with formatting value via format.
template<class t_TYPE>
static
bool
testEvaluateFormat(
bsl::string* message,
bsl::basic_string_view<char> expectedResult,
bool alsoTestOracle,
std::format_string<t_TYPE> fmt,
t_TYPE&& value);
Compare formatting of value and arg against expectedResult.
template<
class t_TYPE,
class t_ARG>
static
bool
testEvaluateFormat(
bsl::string* message,
bsl::basic_string_view<char> expectedResult,
bool alsoTestOracle,
std::format_string<t_TYPE, t_ARG> fmt,
t_TYPE&& value,
t_ARG&& arg);
Compare formatting of value, arg1, and arg2 against expectedResult.
template<
class t_TYPE,
class t_ARG_1,
class t_ARG_2>
static
bool
testEvaluateFormat(
bsl::string* message,
bsl::basic_string_view<char> expectedResult,
bool alsoTestOracle,
std::format_string<t_TYPE, t_ARG_1, t_ARG_2> fmt,
t_TYPE&& value,
t_ARG_1&& arg1,
t_ARG_2&& arg2);
Return Value
true if formatting matches expectedResult, else false.
Parameters
Name |
Description |
message |
Output parameter for an error description on failure. |
expectedResult |
Expected formatted output string. |
alsoTestOracle |
If |
fmt |
Compile‐time format string. |
value |
Primary value to format. |
arg |
Additional format argument. |
arg1 |
First additional format argument. |
arg2 |
Second additional format argument. |
Created with MrDocs