Namespace for static functions that test formatting of bdlt value types.
Declared in <bdlt_formattestutil.h>
struct FormatTestUtil;
This struct serves as a namespace for static functions to facilitate testing of formatting of bdlt value types -- used in the implementation of the above macros, and for conversion between bsl::string and bsl::wstring.
| Name | Description |
|---|---|
narrow | Convert viewIn from wchar_t to char and return a bsl::string. |
testFormat | Compare bsl::format output of value to an expected string. |
testFormatArg | Compare bsl::format output of value and arg to an expected string. |
widen | Load the wide-string version of viewIn into result. |