BloombergLP::bsls::BslTestUtil

This class provides a namespace for utilities that are useful when writing a test driver that is not permitted to use the standard C++ iostream facilities, which is typical of test drivers in the bsl package group.

Synopsis

Declared in <bsls_bsltestutil.h>

struct BslTestUtil;

Static Member Functions

NameDescription
callDebugprint Print the value of the specified object of the parameterized TYPE to the console. Optionally specify a leadingString, which will be printed before object, and a trailingString, which will be printed after object. If leadingString is 0, then nothing will be printed before object. If trailingString is 0, then nothing will be printed after object.
flush Write any unwritten text in the output buffer to stdout.
makeFunctionCallNonInline Return the specified functionPtr (expected to be a static function pointer) without modification. The value of functionPtr is transformed through identityPtr so that if the caller is in a different module, the compiler will have no way of knowing that this is an identity transform and thus no way of inlining the call.
printStringNoFlush Print to the console the specified string, s. Note that the underlying stream is not flushed.
printTab Print to the console a tab character, and then flush the underlying stream to ensure the text is written.