BloombergLP::bslfmt::FormatterTestUtil<char>::testParseVFormat

Verify that parsing the specified runtime fmt succeeds without throwing.

Synopsis

Declared in <bslfmt_formattertestutil.h>

template<class t_TYPE>
static
bool
testParseVFormat(
    bsl::string* message,
    bool alsoTestOracle,
    bsl::basic_string_view<char> 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 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 that fmt can be determined at runtime.

Return Value

true if parsing succeeds without throwing, else false.

Parameters

NameDescription
messageOutput parameter for an error description on failure.
alsoTestOracleIf true, also parse with the standard library.
fmtRuntime format string to parse.