BloombergLP::bsls::AssertTest::tryProbeRaw

Return whether a raw pass-probe specification is valid.

Synopsis

Declared in <bsls_asserttest.h>

static
bool
tryProbeRaw(
    char expectedResult,
    char expectedLevel);

Description

Return true if the specified expectedResult is P (for Pass) and the specified expectedLevel is a valid level; otherwise, return false. If expectedResult is anything other than P or F (for Fail), this function reports the invalid expectedResult value to stdout before returning false. If expectedlevel is anything other than S, A, O, or I, this function reports the invalid expectedLevel value to stdout before returning false.

Return Value

true if the raw pass-probe is valid, else false

Parameters

NameDescription
expectedResultexpected outcome (P for pass, F for fail)
expectedLevelexpected assertion level (S, A, O, or I)