BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bslmt_testutil.h File Reference
#include <bsls_ident.h>
#include <bslscm_version.h>
#include <bslmt_recursivemutex.h>
#include <bslmf_assert.h>
#include <bsls_keyword.h>
#include <bsls_unspecifiedbool.h>
#include <bsl_iostream.h>
#include <bsl_string.h>

Go to the source code of this file.

Classes

struct  bslmt::TestUtil
 
class  bslmt::TestUtil_Guard
 

Macros

#define BSLMT_TESTUTIL_GUARD_NAME_IMPL    bloomberglp_bslmt_tEsTuTiL_GuArD_ ## __LINE__
 
#define BSLMT_TESTUTIL_GUARD    BloombergLP::bslmt::TestUtil_Guard BSLMT_TESTUTIL_GUARD_NAME_IMPL
 
#define BSLMT_TESTUTIL_OUTPUT_GUARD   BSLMT_TESTUTIL_GUARD
 
#define BSLMT_TESTUTIL_NESTED_OUTPUT_GUARD   BSLMT_TESTUTIL_GUARD
 
#define BSLMT_TESTUTIL_GUARDED_STREAM(STREAM)
 
#define BSLMT_TESTUTIL_COUT   BSLMT_TESTUTIL_GUARDED_STREAM(bsl::cout)
 
#define BSLMT_TESTUTIL_CERR   BSLMT_TESTUTIL_GUARDED_STREAM(bsl::cerr)
 
#define BSLMT_TESTUTIL_LOOP0_ASSERT(X)
 
#define BSLMT_TESTUTIL_ASSERT(X)   BSLMT_TESTUTIL_LOOP0_ASSERT(X)
 
#define BSLMT_TESTUTIL_LOOP1_ASSERT(I, X)
 
#define BSLMT_TESTUTIL_LOOP_ASSERT(X)   BSLMT_TESTUTIL_LOOP1_ASSERT(X)
 
#define BSLMT_TESTUTIL_LOOP2_ASSERT(I, J, X)
 
#define BSLMT_TESTUTIL_LOOP3_ASSERT(I, J, K, X)
 
#define BSLMT_TESTUTIL_LOOP4_ASSERT(I, J, K, L, X)
 
#define BSLMT_TESTUTIL_LOOP5_ASSERT(I, J, K, L, M, X)
 
#define BSLMT_TESTUTIL_LOOP6_ASSERT(I, J, K, L, M, N, X)
 
#define BSLMT_TESTUTIL_EXPAND(X)    X
 
#define BSLMT_TESTUTIL_NUM_ARGS_IMPL(X6, X5, X4, X3, X2, X1, X0, N, ...)    N
 
#define BSLMT_TESTUTIL_NUM_ARGS(...)
 
#define BSLMT_TESTUTIL_LOOPN_ASSERT_IMPL(N, ...)    BSLMT_TESTUTIL_EXPAND(BSLMT_TESTUTIL_LOOP ## N ## _ASSERT(__VA_ARGS__))
 
#define BSLMT_TESTUTIL_LOOPN_ASSERT(N, ...)    BSLMT_TESTUTIL_LOOPN_ASSERT_IMPL(N, __VA_ARGS__)
 
#define BSLMT_TESTUTIL_ASSERTV(...)
 
#define BSLMT_TESTUTIL_Q(X)    BSLMT_TESTUTIL_COUT << "<| " #X " |>" << bsl::endl
 Quote identifier literally.
 
#define BSLMT_TESTUTIL_P(X)    BSLMT_TESTUTIL_COUT << #X " = " << (X) << bsl::endl
 Print identifier and its value.
 
#define BSLMT_TESTUTIL_P_(X)    BSLMT_TESTUTIL_COUT << #X " = " << (X) << ", " << bsl::flush
 P(X) without '
'
 
#define BSLMT_TESTUTIL_T_    BSLMT_TESTUTIL_COUT << "\t" << bsl::flush;
 
#define BSLMT_TESTUTIL_L_    __LINE__
 current Line number
 

Detailed Description

The content of this file has been pre-processed for Doxygen.