Public Member Functions
nvidia::apex::TestBase Class Reference

#include <TestBase.h>

List of all members.

Public Member Functions

virtual const char * getUnitTestsName (uint32_t unitTestsIndex) const =0
 Returns the name of the test at this index.
virtual uint32_t getUnitTestsIndex (const char *unitTestsName) const =0
 Returns the index of the test for this name.
virtual bool runUnitTests (uint32_t unitTestsID, void *dataPtr) const =0
 run unit test
virtual bool checkUnitTests (uint32_t unitTestsID, void *dataPtr) const =0
 check unit test
virtual uint32_t getUnitTestsCount () const =0
 returns the number of unit tests
virtual void setRuntimeCheckLevel (uint32_t level)=0
 set level of runtime check

Detailed Description

Defines the UnitTestsActor API which is instantiated from an UnitTestsAsset


Member Function Documentation

virtual uint32_t nvidia::apex::TestBase::getUnitTestsIndex ( const char *  unitTestsName) const [pure virtual]

Returns the index of the test for this name.

Parameters:
[in]unitTestsName: The test name to refer to; if there is no such name method returns -1
virtual const char* nvidia::apex::TestBase::getUnitTestsName ( uint32_t  unitTestsIndex) const [pure virtual]

Returns the name of the test at this index.

Parameters:
[in]unitTestsIndex: The test number to refer to; must be less than the result of getUnitTestCount
virtual bool nvidia::apex::TestBase::runUnitTests ( uint32_t  unitTestsID,
void *  dataPtr 
) const [pure virtual]

run unit test

Parameters:
[in]unitTestsID: The unit test number to refer to; must be less than the result of getUnitTestsCount
[in]dataPtr: The pointer to data which is needed for unit test.
virtual void nvidia::apex::TestBase::setRuntimeCheckLevel ( uint32_t  level) [pure virtual]

set level of runtime check

Parameters:
[in]level- level of runtime check

level = 0 - no runtime checks level = 1 - easy-weight checks. Perfomance should not drop more than 10-20% level = 2 - medium-weight checks. Perfomance drop less than 300-500% level = 3 - hard-weight checks. Perfomance drop isn't limited


The documentation for this class was generated from the following file:

Generated on Sat Dec 1 2018 15:52:10

Copyright © 2012-2018 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved.