BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bslim_gtestutil

Detailed Description

Outline

Purpose

Provide facilities for debugging BDE with gtest.

Description

The bslim_gtestutil component provides utitlities to facilitate testing with Google Test (GTest).

Usage

Suppose we have a string str that we want to output:

"No matter where you go, There you are! -- Buckaroo Banzai";
Definition bslstl_string.h:1281

Call PrintTo, passing the string and a pointer to a bsl::ostream:

PrintTo(str, &cout);
cout << endl;

Which results in the string being streamed to standard output, surrounded by double quotes:

"No matter where you go, There you are! -- Buckaroo Banzai"