
Public Member Functions | |
| TestResult () | |
| void | setTestName (const std::string &name) |
| TestResult & | addFailure (const char *file, unsigned int line, const char *expr=0) |
| Adds an assertion failure. | |
| TestResult & | popPredicateContext () |
| Removes the last PredicateContext added to the predicate stack chained list. Next messages will be targed at the PredicateContext that was removed. | |
| bool | failed () const |
| void | printFailure (bool printTestName) const |
| template<typename T> | |
| TestResult & | operator<< (const T &value) |
| TestResult & | operator<< (bool value) |
| TestResult & | operator<< (Json::Int64 value) |
| TestResult & | operator<< (Json::UInt64 value) |
Public Attributes | |
| PredicateContext::Id | predicateId_ |
| PredicateContext * | predicateStackTail_ |
| TestResult | ( | ) |
| void setTestName | ( | const std::string & | name | ) |
| TestResult & addFailure | ( | const char * | file, | |
| unsigned int | line, | |||
| const char * | expr = 0 | |||
| ) |
Adds an assertion failure.
Walks the PredicateContext stack adding them to failures_ if not already added.
| TestResult & popPredicateContext | ( | ) |
Removes the last PredicateContext added to the predicate stack chained list. Next messages will be targed at the PredicateContext that was removed.
| bool failed | ( | ) | const |
| void printFailure | ( | bool | printTestName | ) | const |
| TestResult& operator<< | ( | const T & | value | ) | [inline] |
| TestResult & operator<< | ( | bool | value | ) |
| TestResult & operator<< | ( | Json::Int64 | value | ) |
| TestResult & operator<< | ( | Json::UInt64 | value | ) |
1.5.3