Utilities for writing bsl test drivers without iostream.

Synopsis

Declared in <bsls_bsltestutil.h>

struct BslTestUtil;

Description

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.

Static Member Functions

Name

Description

callDebugprint

Print the value of object to the console.

flush

Write any unwritten text in the output buffer to stdout.

makeFunctionCallNonInline

Return functionPtr unchanged while preventing inlining.

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.

Created with MrDocs