|
Revision 456, 0.6 kB
(checked in by vbarta, 16 years ago)
|
|
custom test location for harness tests (extended UnitTest?++), configurable tolerance - all tests pass (most of the time)
|
| Line | |
|---|
| 1 | #ifndef UNITTEST_TESTDETAILS_H |
|---|
| 2 | #define UNITTEST_TESTDETAILS_H |
|---|
| 3 | |
|---|
| 4 | namespace UnitTest { |
|---|
| 5 | |
|---|
| 6 | class TestDetails |
|---|
| 7 | { |
|---|
| 8 | public: |
|---|
| 9 | TestDetails(char const* testName, char const* suiteName, char const* filename, int lineNumber, bool useFilename = true); |
|---|
| 10 | TestDetails(const TestDetails& details, int lineNumber, bool useFilename = true); |
|---|
| 11 | |
|---|
| 12 | char const* const suiteName; |
|---|
| 13 | char const* const testName; |
|---|
| 14 | char const* const filename; |
|---|
| 15 | int const lineNumber; |
|---|
| 16 | bool const useFilename; |
|---|
| 17 | |
|---|
| 18 | TestDetails(TestDetails const&); // Why is it public? --> http://gcc.gnu.org/bugs.html#cxx_rvalbind |
|---|
| 19 | private: |
|---|
| 20 | TestDetails& operator=(TestDetails const&); |
|---|
| 21 | }; |
|---|
| 22 | |
|---|
| 23 | } |
|---|
| 24 | |
|---|
| 25 | #endif |
|---|