This struct provides a namespace for a suite of utility functions that facilitate the creation of BDE‐style test drivers.

Synopsis

Declared in <bslim_testutil.h>

struct TestUtil;

Static Member Functions

Name

Description

compareText

Return true if the specified lhs has the same value as the specified rhs, and false otherwise. Optionally specify an errorStream on which, if lhs and rhs are not the same', a description of how the two strings differ will be written. If errorStream is not supplied, stdout is used.

debugRep

debugRep overloads

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.

Created with MrDocs