Verify that parsing the specified fmt fails as expected.
Synopsis
Declared in <bslfmt_formattertestutil.h>
template<class t_TYPE>
static
bool
testParseFailure(
bsl::string* message,
bool alsoTestOracle,
bsl::basic_string_view<wchar_t> fmt);
Description
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.
Return Value
true if parsing fails as expected, else false.
Parameters
Name |
Description |
message |
Output parameter for an error description on failure. |
alsoTestOracle |
If |
fmt |
Format string expected to fail parsing. |
Created with MrDocs