Public Member Functions | |
| virtual String | getName () |
| void | checkNormal () |
| virtual void | runTests () |
| void | report (int severity, const String &problem) |
| void | add (UnitTest &unit) |
| void | clear () |
| virtual int | run () |
| virtual int | run (int argc, char *argv[]) |
| virtual void | runSubTests (int argc, char *argv[]) |
| bool | checkEqualImpl (int x, int y, const char *desc, const char *txt1, const char *txt2, const char *fname, int fline) |
| bool | checkEqualImpl (const String &x, const String &y, const char *desc, const char *txt1, const char *txt2, const char *fname, int fline) |
| bool | checkEqualishImpl (double x, double y, const char *desc, const char *txt1, const char *txt2, const char *fname, int fline) |
| String | humanize (const String &txt) |
Static Public Member Functions | |
| static void | startTestSystem () |
| static UnitTest & | getRoot () |
| static void | stopTestSystem () |
| void UnitTest::add | ( | UnitTest & | unit | ) | [inherited] |
Referenced by yarp::os::impl::TestList::collectTests(), and yarp::os::impl::UnitTest::UnitTest().
| bool UnitTest::checkEqualImpl | ( | int | x, | |
| int | y, | |||
| const char * | desc, | |||
| const char * | txt1, | |||
| const char * | txt2, | |||
| const char * | fname, | |||
| int | fline | |||
| ) | [inherited] |
References yarp::os::impl::UnitTest::report().
| bool UnitTest::checkEqualishImpl | ( | double | x, | |
| double | y, | |||
| const char * | desc, | |||
| const char * | txt1, | |||
| const char * | txt2, | |||
| const char * | fname, | |||
| int | fline | |||
| ) | [inherited] |
References yarp::os::impl::UnitTest::report().
| void DgramTwoWayStreamTest::checkNormal | ( | ) | [inline] |
References yarp::os::impl::DgramTwoWayStream::beginPacket(), checkEqual, checkFalse, checkTrue, DgramTest::clear(), DgramTest::copyMonitor(), DgramTest::corrupt(), DgramTest::corruptDrop(), DgramTest::corruptSwap(), yarp::os::impl::DgramTwoWayStream::endPacket(), yarp::os::impl::DgramTwoWayStream::flush(), len, yarp< M, IMPL >::length(), yarp< M, IMPL >::ManagedBytes(), msg, yarp::os::impl::DgramTwoWayStream::openMonitor(), yarp::os::impl::NetType::readFull(), DgramTest::size(), and yarp::os::impl::DgramTwoWayStream::write().
| void UnitTest::clear | ( | ) | [inherited] |
Referenced by yarp::os::impl::UnitTest::~UnitTest().
| virtual String DgramTwoWayStreamTest::getName | ( | ) | [inline, virtual] |
Implements yarp::os::impl::UnitTest.
| UnitTest & UnitTest::getRoot | ( | ) | [static, inherited] |
References yarp::os::impl::UnitTest::startTestSystem(), and YARP_ASSERT().
Referenced by yarp::os::impl::TestList::collectTests(), harness_main(), main(), and yarp::os::impl::UnitTest::UnitTest().
References result.
Referenced by yarp::os::impl::UnitTest::checkEqualImpl().
| void UnitTest::report | ( | int | severity, | |
| const String & | problem | |||
| ) | [inherited] |
| int UnitTest::run | ( | int | argc, | |
| char * | argv[] | |||
| ) | [virtual, inherited] |
| int UnitTest::run | ( | ) | [virtual, inherited] |
Referenced by harness_main(), and main().
| void UnitTest::runSubTests | ( | int | argc, | |
| char * | argv[] | |||
| ) | [virtual, inherited] |
Referenced by yarp::os::impl::UnitTest::run().
| virtual void DgramTwoWayStreamTest::runTests | ( | ) | [inline, virtual] |
Reimplemented from yarp::os::impl::UnitTest.
| void UnitTest::startTestSystem | ( | ) | [static, inherited] |
Referenced by yarp::os::impl::UnitTest::getRoot(), harness_main(), and main().
| void UnitTest::stopTestSystem | ( | ) | [static, inherited] |
Referenced by harness_main(), and main().
1.7.1