[#BloombergLP-bslim-TestUtil] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslim.adoc[bslim]::TestUtil :relfileprefix: ../../ :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct TestUtil; ---- == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslim/TestUtil/compareText.adoc[`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. | xref:BloombergLP/bslim/TestUtil/debugRep-09.adoc[`debugRep`] | `debugRep` overloads | xref:BloombergLP/bslim/TestUtil/makeFunctionCallNonInline.adoc[`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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#