BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bslim_testutil.h File Reference
#include <bsls_ident.h>
#include <bslscm_version.h>
#include <bslmf_assert.h>
#include <bsl_iostream.h>
#include <bsl_string.h>
#include <bsltf_templatetestfacility.h>

Go to the source code of this file.

Classes

struct  bslim::TestUtil
 

Macros

#define BSLIM_TESTUTIL_ASSERT(X)    aSsErT(!(X), #X, __LINE__);
 
#define BSLIM_TESTUTIL_DEBUG_REP(X)   BloombergLP::bslim::TestUtil::debugRep(X)
 
#define BSLIM_TESTUTIL_LOOP0_ASSERT    BSLIM_TESTUTIL_ASSERT
 
#define BSLIM_TESTUTIL_LOOP_ASSERT(I, X)
 
#define BSLIM_TESTUTIL_LOOP1_ASSERT    BSLIM_TESTUTIL_LOOP_ASSERT
 
#define BSLIM_TESTUTIL_LOOP2_ASSERT(I, J, X)
 
#define BSLIM_TESTUTIL_LOOP3_ASSERT(I, J, K, X)
 
#define BSLIM_TESTUTIL_LOOP4_ASSERT(I, J, K, L, X)
 
#define BSLIM_TESTUTIL_LOOP5_ASSERT(I, J, K, L, M, X)
 
#define BSLIM_TESTUTIL_LOOP6_ASSERT(I, J, K, L, M, N, X)
 
#define BSLIM_TESTUTIL_LOOP7_ASSERT(I, J, K, L, M, N, O, X)
 
#define BSLIM_TESTUTIL_LOOP8_ASSERT(I, J, K, L, M, N, O, V, X)
 
#define BSLIM_TESTUTIL_EXPAND(X)    X
 
#define BSLIM_TESTUTIL_NUM_ARGS_IMPL(X8, X7, X6, X5, X4, X3, X2, X1, X0, N, ...)    N
 
#define BSLIM_TESTUTIL_NUM_ARGS(...)
 
#define BSLIM_TESTUTIL_LOOPN_ASSERT_IMPL(N, ...)    BSLIM_TESTUTIL_EXPAND(BSLIM_TESTUTIL_LOOP ## N ## _ASSERT(__VA_ARGS__))
 
#define BSLIM_TESTUTIL_LOOPN_ASSERT(N, ...)    BSLIM_TESTUTIL_LOOPN_ASSERT_IMPL(N, __VA_ARGS__)
 
#define BSLIM_TESTUTIL_ASSERTV(...)
 
#define BSLIM_TESTUTIL_Q(X)    bsl::cout << "<| " #X " |>" << bsl::endl;
 Quote identifier literally.
 
#define BSLIM_TESTUTIL_P(X)    bsl::cout << #X " = " << BSLIM_TESTUTIL_DEBUG_REP(X) << bsl::endl;
 Print identifier and its value.
 
#define BSLIM_TESTUTIL_P_(X)    bsl::cout << #X " = " << BSLIM_TESTUTIL_DEBUG_REP(X) << ", " << bsl::flush;
 P(X) without '
'
 
#define BSLIM_TESTUTIL_L_    __LINE__
 current Line number
 
#define BSLIM_TESTUTIL_T_    bsl::cout << "\t" << bsl::flush;
 Print tab (w/o newline).
 

Detailed Description

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