KUnitTest::SlotTester Class Reference
#include <tester.h>
Inheritance diagram for KUnitTest::SlotTester:

Signals | |
void | invoke () |
Public Member Functions | |
SlotTester (const char *name=0L) | |
void | allTests () |
TestResults * | results (const char *sl) |
TestResultsListType & | resultsList () |
![]() | |
Tester (const char *name=0L) | |
virtual void | allTests ()=0 |
virtual TestResults * | results () |
Additional Inherited Members | |
![]() | |
void | skip (const char *file, int line, TQString msg) |
template<typename T > | |
void | check (const char *file, int line, const char *str, const T &result, const T &expectedResult, bool expectedFail) |
void | success (const TQString &message) |
void | failure (const TQString &message) |
void | expectedFailure (const TQString &message) |
void | unexpectedSuccess (const TQString &message) |
void | skipTest (const TQString &message) |
void | setExceptionRaised (bool state) |
bool | exceptionRaised () const |
![]() | |
TestResults * | m_results |
Detailed Description
The SlotTester class is a special Tester class, one that will execute all slots that start with the string "test". The method void allTests() is implemented and should not be overriden.
Constructor & Destructor Documentation
◆ SlotTester()
KUnitTest::SlotTester::SlotTester | ( | const char * | name = 0L | ) |
Definition at line 35 of file tester.cpp.
Member Function Documentation
◆ allTests()
|
virtual |
Implement this method with the tests and checks you want to perform.
Implements KUnitTest::Tester.
Definition at line 49 of file tester.cpp.
◆ results()
TestResults * KUnitTest::SlotTester::results | ( | const char * | sl | ) |
Definition at line 75 of file tester.cpp.
◆ resultsList()
|
inline |
The documentation for this class was generated from the following files: