The C++ framework for developing highly scalable, high performance servers on Windows platforms.

TestResult Class Reference

Collaboration diagram for TestResult:

List of all members.

Public Member Functions

 TestResult ()
void setTestName (const std::string &name)
TestResultaddFailure (const char *file, unsigned int line, const char *expr=0)
 Adds an assertion failure.
TestResultpopPredicateContext ()
 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>
TestResultoperator<< (const T &value)
TestResultoperator<< (bool value)
TestResultoperator<< (Json::Int64 value)
TestResultoperator<< (Json::UInt64 value)

Public Attributes

PredicateContext::Id predicateId_
PredicateContextpredicateStackTail_


Constructor & Destructor Documentation

TestResult (  ) 


Member Function Documentation

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  ) 


Member Data Documentation


Generated on Sun Sep 12 19:12:02 2021 for The Server Framework - v7.4 by doxygen 1.5.3