This is Unofficial EPICS BASE Doxygen Site
detail Namespace Reference

Classes

struct  ref_shower
 
class  testPassx
 

Functions

template<class C , void(C::*)() M>
void test_method (const char *kname, const char *mname)
 
template<typename LHS , typename RHS >
testPassx testEqualx (const char *nLHS, const char *nRHS, const LHS &l, const RHS &r)
 
template<typename LHS , typename RHS >
testPassx testNotEqualx (const char *nLHS, const char *nRHS, const LHS &l, const RHS &r)
 

Function Documentation

template<class C , void(C::*)() M>
void detail::test_method ( const char *  kname,
const char *  mname 
)

Definition at line 20 of file pvUnitTest.h.

21 {
22  try {
23  testDiag("------- %s::%s --------", kname, mname);
24  C inst;
25  (inst.*M)();
26  } catch(std::exception& e) {
27  PRINT_EXCEPTION(e);
28  testAbort("unexpected exception: %s", e.what());
29  }
30 }
int testDiag(const char *fmt,...)
#define PRINT_EXCEPTION(EI)
void testAbort(const char *fmt,...)
template<typename LHS , typename RHS >
testPassx detail::testEqualx ( const char *  nLHS,
const char *  nRHS,
const LHS &  l,
const RHS &  r 
)
inline

Definition at line 55 of file pvUnitTest.h.

56 {
57  return testPassx(l==r)<<nLHS<<" ("<<l<<") == "<<nRHS<<" ("<<r<<")";
58 }
template<typename LHS , typename RHS >
testPassx detail::testNotEqualx ( const char *  nLHS,
const char *  nRHS,
const LHS &  l,
const RHS &  r 
)
inline

Definition at line 61 of file pvUnitTest.h.

62 {
63  return testPassx(l!=r)<<nLHS<<" ("<<l<<") != "<<nRHS<<" ("<<r<<")";
64 }