[#BloombergLP-bslmt-TestUtil]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::TestUtil
:relfileprefix: ../../
:mrdocs:

This `struct` provides a namespace for a suite of utility functions that facilitate the creation of BDE&hyphen;style test drivers&period;

== Synopsis

Declared in `&lt;bslmt&lowbar;testutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct TestUtil;
----

== Description

The `callFunc` function, because it&apos;s out&hyphen;of&hyphen;line implementation is in the `&period;cpp` file, can be used to prevent unwanted inlining in test drivers, particularly useful when testing the stack trace functionality&period;

== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslmt/TestUtil/makeFunctionCallNonInline.adoc[`makeFunctionCallNonInline`] 
| Return the specified `functionPtr` (expected to be a static function pointer) without modification&period; 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 function and thus no way of inlining the call&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
