#include <sstream>
#include <typeinfo>
#include <epicsUnitTest.h>
#include <pv/sharedPtr.h>
#include <pv/epicsException.h>
#include <pv/pvData.h>
Go to the source code of this file.
|
| #define | TEST_METHOD(klass, method) ::detail::test_method<klass, &klass::method>(#klass, #method) |
| |
| #define | testEqual(LHS, RHS) ::detail::testEqualx(#LHS, #RHS, LHS, RHS) |
| |
| #define | testNotEqual(LHS, RHS) ::detail::testNotEqualx(#LHS, #RHS, LHS, RHS) |
| |
| #define | testTrue(B) ::detail::testPassx(!!(B))<<#B |
| |
| #define | testThrows(EXC, CODE) try{ CODE; testFail("unexpected success of " #CODE); }catch(EXC& e){testPass("catch expected exception: %s", e.what());} |
| |
| #define | testShow() ::detail::testPassx() |
| |
|
| template<class C , void(C::*)() M> |
| void | detail::test_method (const char *kname, const char *mname) |
| |
| template<typename LHS , typename RHS > |
| testPassx | detail::testEqualx (const char *nLHS, const char *nRHS, const LHS &l, const RHS &r) |
| |
| template<typename LHS , typename RHS > |
| testPassx | detail::testNotEqualx (const char *nLHS, const char *nRHS, const LHS &l, const RHS &r) |
| |
| template<typename PVD > |
| ::detail::testPassx | testFieldEqual (const std::tr1::shared_ptr< const epics::pvData::PVStructure > &val, const char *name, typename PVD::value_type expect) |
| |
| template<typename PVD > |
| ::detail::testPassx | testFieldEqual (const std::tr1::shared_ptr< const epics::pvData::PVStructure > &val, const char *name, typename PVD::const_svector expect) |
| |