TalanSoft Toolkits  201707
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | Public Attributes | List of all members
TestResults Class Reference

Public Member Functions

 TestResults (TestReporter *reporter, int numTests)
 
void OnTestStart (char const *testName)
 
void OnCountLog (int type)
 
void OnTestTime (char const *testName, float secondsElapsed)
 
void OnTestFailure (char const *file, int line, char const *testName, char const *failure)
 
void OnTestFinish (char const *testName, float secondsElapsed)
 
int GetTestCount () const
 
int GetTestFailedCount () const
 
int GetTestWarnedCount () const
 
int GetTotalFailureCount () const
 
int GetTotalWarningCount () const
 
int GetLogErrors () const
 
int GetLogWarnings () const
 
void PushLogErrors ()
 
void PushLogWarnings ()
 
int GetLogErrorsDelta () const
 
int GetLogWarningsDelta () const
 

Public Attributes

TestReporterm_testReporter
 
const int m_numTests
 
int m_testCount
 
int m_testFailedCount
 
int m_testWarnedCount
 
int m_logErrors
 
int m_logErrorsPush
 
int m_logWarnings
 
int m_logWarningsPush
 
int m_totalFailureCount
 
int m_totalFailureCountPush
 
int m_totalWarningCount
 
int m_totalWarningCountPush
 
int m_warningMode
 

Constructor & Destructor Documentation

TestResults ( TestReporter reporter,
int  numTests 
)
explicit

Member Function Documentation

void OnTestStart ( char const *  testName)
void OnCountLog ( int  type)
void OnTestTime ( char const *  testName,
float  secondsElapsed 
)
void OnTestFailure ( char const *  file,
int  line,
char const *  testName,
char const *  failure 
)
void OnTestFinish ( char const *  testName,
float  secondsElapsed 
)
int GetTestCount ( ) const
int GetTestFailedCount ( ) const
int GetTestWarnedCount ( ) const
int GetTotalFailureCount ( ) const
int GetTotalWarningCount ( ) const
int GetLogErrors ( ) const
int GetLogWarnings ( ) const
void PushLogErrors ( )
void PushLogWarnings ( )
int GetLogErrorsDelta ( ) const
int GetLogWarningsDelta ( ) const

Member Data Documentation

TestReporter* m_testReporter
const int m_numTests
int m_testCount
int m_testFailedCount
int m_testWarnedCount
int m_logErrors
int m_logErrorsPush
int m_logWarnings
int m_logWarningsPush
int m_totalFailureCount
int m_totalFailureCountPush
int m_totalWarningCount
int m_totalWarningCountPush
int m_warningMode