|
PVData C++ 8.0.7
|
Macros | |
| #define | TEST_METHOD(klass, method) |
| #define | testEqual(LHS, RHS) |
| #define | testNotEqual(LHS, RHS) |
| #define | testTrue(B) |
| #define | testThrows(EXC, CODE) |
| #define | testShow() |
Functions | |
| 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) |
Helper functions for writing unit tests.
| #define TEST_METHOD | ( | klass, | |
| method ) |
Run a class method as a test.
Each invocation of TEST_METHOD() constructs a new instance of 'klass' on the stack. Thus constructor and destructor can be used for common test setup and tear down.
Definition at line 98 of file pvUnitTest.h.
| #define testEqual | ( | LHS, | |
| RHS ) |
Compare equality. print left and right hand values and expression strings
Definition at line 110 of file pvUnitTest.h.
| #define testNotEqual | ( | LHS, | |
| RHS ) |
Definition at line 112 of file pvUnitTest.h.
| #define testShow | ( | ) |
Print test output w/o testing
Definition at line 140 of file pvUnitTest.h.
| #define testThrows | ( | EXC, | |
| CODE ) |
Test that a given block throws an exception
Definition at line 132 of file pvUnitTest.h.
| #define testTrue | ( | B | ) |
Pass/fail from boolean
Definition at line 124 of file pvUnitTest.h.
| ::detail::testPassx testFieldEqual | ( | const std::tr1::shared_ptr< const epics::pvData::PVStructure > & | val, |
| const char * | name, | ||
| typename PVD::const_svector | expect ) |
Definition at line 172 of file pvUnitTest.h.
| ::detail::testPassx testFieldEqual | ( | const std::tr1::shared_ptr< const epics::pvData::PVStructure > & | val, |
| const char * | name, | ||
| typename PVD::value_type | expect ) |
Compare value of PVStructure field
Definition at line 151 of file pvUnitTest.h.