Provide test utilities for components above bsl
.
More...
Namespaces |
namespace | bslim |
Detailed Description
- Outline
-
-
- Purpose:
- Provide test utilities for components above
bsl
.
-
- Classes:
-
- Macros:
BSLIM_TESTUTIL_ASSERT(X) | record and print error if !X |
BSLIM_TESTUTIL_LOOP_ASSERT(I, X) | print arguments if !X |
BSLIM_TESTUTIL_LOOP2_ASSERT(I, J, X) | print arguments if !X |
BSLIM_TESTUTIL_LOOP3_ASSERT(I, J, K, X) | print arguments if !X |
BSLIM_TESTUTIL_LOOP4_ASSERT(I, J, K, L, X) | print arguments if !X |
BSLIM_TESTUTIL_LOOP5_ASSERT(I, J, K, L, M, X) | print arguments if !X |
BSLIM_TESTUTIL_LOOP6_ASSERT(I, J, K, L, M, N, X) | print arguments if !X |
BSLIM_TESTUTIL_LOOP7_ASSERT(I, J, K, L, M, N,O, X) | print arguments if !X |
BSLIM_TESTUTIL_LOOP8_ASSERT(I, J, K, L,M,N,O,V, X) | print arguments if !X |
BSLIM_TESTUTIL_ASSERTV(..., X) | print generic arguments if !X |
BSLIM_TESTUTIL_Q(X) | quote identifier literally |
BSLIM_TESTUTIL_P(X) | print identifier and value |
BSLIM_TESTUTIL_P_(X) | print identifier and value without \n |
BSLIM_TESTUTIL_L_ | current line number |
BSLIM_TESTUTIL_T_ | print tab without \n |
- See also:
- Component bsls_bsltestutil
-
- Description:
- This component provides the standard print macros used in BDE-style test drivers (
ASSERT
, LOOP_ASSERT
, ASSERTV
, P
, Q
, L
, and T
) for components above the bsl
package group.
- This component also defines a set of overloads for the insertion operator (
<<
) to support the streaming of test types defined in the bsltf
package. These overloads are required for test drivers above the bsl
package group in order to print objects of the bsltf
types to bsl::cout
.
- This component also defines a pair of methods,
setFunc
and callFunc
, that allow a test driver to set and call a function by going through another compilation unit to preclude the optimizer from inlining the function call.