Base Framework
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
UnitTest::Run Class Reference

Inherits ReferenceCountedObject.

Public Member Functions

void onException (const Exception *exception)
 
void onPrint (const String &what, unsigned int line=0)
 
void onPrintIssue (const String &what, unsigned int line=0)
 
void onPassed (const String &what, unsigned int line=0)
 
void onFailed (const String &what, unsigned int line=0)
 
void registerHere (const Here *here, const char *description)
 
void registerNotHere (const NotHere *here, const char *description)
 
void onHere (const Here *here)
 
void onNotHere (const NotHere *here)
 
Reference< ObjectModel::ObjectgetReport () const
 
- Public Member Functions inherited from ReferenceCountedObject
 ReferenceCountedObject () noexcept
 
 ReferenceCountedObject (const ReferenceCountedObject &copy) noexcept
 
 ReferenceCountedObject (ReferenceCountedObject &&move) noexcept
 
ReferenceCountedObjectoperator= (const ReferenceCountedObject &copy) noexcept
 
ReferenceCountedObjectoperator= (ReferenceCountedObject &&move) noexcept
 
MemorySize getNumberOfReferences_INTERNAL () const noexcept
 
virtual bool useGarbageCollector () const noexcept
 
- Public Member Functions inherited from DynamicObject
 DynamicObject () noexcept
 
bool isValidObject () const noexcept
 
virtual ~DynamicObject () noexcept(false)
 
 _COM_AZURE_DEV__BASE__OVERRIDE_ALLOC ()
 

Static Public Member Functions

static bool compare (const Run &a, const Run &b)
 

Public Attributes

uint64 startTime = 0
 
uint64 endTime = 0
 
unsigned int passed = 0
 
unsigned int failed = 0
 
unsigned int exceptions = 0
 
Map< const void *, HereMetaheres
 
Array< TestResultresults
 
String exceptionFailure
 
String exceptionType
 

Member Function Documentation

◆ compare()

static bool UnitTest::Run::compare ( const Run a,
const Run b 
)
static

Compares 2 runs.

◆ getReport()

Reference<ObjectModel::Object> UnitTest::Run::getReport ( ) const

Returns the report.

◆ onException()

void UnitTest::Run::onException ( const Exception exception)

Called on exception.

◆ onFailed()

void UnitTest::Run::onFailed ( const String what,
unsigned int  line = 0 
)

Called when subtest failed.

◆ onHere()

void UnitTest::Run::onHere ( const Here *  here)

Called when here point is reached.

◆ onNotHere()

void UnitTest::Run::onNotHere ( const NotHere *  here)

Called when here point is reached but shouldn't be reached.

◆ onPassed()

void UnitTest::Run::onPassed ( const String what,
unsigned int  line = 0 
)

Called when subtest passed.

◆ onPrint()

void UnitTest::Run::onPrint ( const String what,
unsigned int  line = 0 
)

Called on explicit print request.

◆ onPrintIssue()

void UnitTest::Run::onPrintIssue ( const String what,
unsigned int  line = 0 
)

Called on explicit print request.

◆ registerHere()

void UnitTest::Run::registerHere ( const Here *  here,
const char *  description 
)

Called when here point is declared.

◆ registerNotHere()

void UnitTest::Run::registerNotHere ( const NotHere *  here,
const char *  description 
)

Called when here point is declared.