#include <string>#include "xmlrpc-c/girerr.hpp"


Go to the source code of this file.
Classes | |
| class | testSuite |
Defines | |
| #define | TEST(statement) |
| #define | TEST_PASSED() do { } while (0) |
| #define | TEST_FAILED(reason) |
| #define | EXPECT_ERROR(statement) |
| #define | trickToStraightenOutEmacsIndentation ; |
Functions | |
| void | logFailedTest (const char *const fileName, unsigned int const lineNum, const char *const statement) |
| error | fileLineError (std::string const filename, unsigned int const lineNumber, std::string const description) |
| #define EXPECT_ERROR | ( | statement | ) |
Value:
do { try { statement } catch (error) {break;} \ throw(fileLineError(__FILE__, __LINE__, "Expected error; didn't get one")); \ } while (0)
| #define TEST | ( | statement | ) |
Value:
do {tests++; \ if (!(statement)) { \ logFailedTest(__FILE__, __LINE__, #statement); \ failures++;} \ } while (0)
| #define TEST_FAILED | ( | reason | ) |
Value:
do { \ logFailedTest(__FILE__, __LINE__, (reason)); \ } while (0)
| error fileLineError | ( | std::string const | filename, | |
| unsigned int const | lineNumber, | |||
| std::string const | description | |||
| ) |
| void logFailedTest | ( | const char *const | fileName, | |
| unsigned int const | lineNum, | |||
| const char *const | statement | |||
| ) |
1.5.6