Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
TestIrrPtr Class Reference
+ Inheritance diagram for TestIrrPtr:
+ Collaboration diagram for TestIrrPtr:

Public Member Functions

 TestIrrPtr ()
 
const char * getName ()
 
void runTests (IGameDef *gamedef)
 
void testRefCounting ()
 
void testSelfAssignment ()
 
void testNullHandling ()
 
- Public Member Functions inherited from TestBase
bool testModule (IGameDef *gamedef)
 
std::string getTestTempDirectory ()
 
std::string getTestTempFile ()
 
void runTest (const char *name, std::function< void()> &&test)
 

Additional Inherited Members

- Public Attributes inherited from TestBase
u32 num_tests_failed
 
u32 num_tests_run
 

Constructor & Destructor Documentation

◆ TestIrrPtr()

TestIrrPtr::TestIrrPtr ( )
inline

References TestManager::registerTestModule().

+ Here is the call graph for this function:

Member Function Documentation

◆ getName()

const char * TestIrrPtr::getName ( )
inlinevirtual

Implements TestBase.

◆ runTests()

void TestIrrPtr::runTests ( IGameDef * gamedef)
virtual

Implements TestBase.

References TEST, testNullHandling(), testRefCounting(), and testSelfAssignment().

+ Here is the call graph for this function:

◆ testNullHandling()

void TestIrrPtr::testNullHandling ( )

References UASSERT.

Referenced by runTests().

+ Here is the caller graph for this function:

◆ testRefCounting()

void TestIrrPtr::testRefCounting ( )

References UASSERT, UASSERT_REFERENCE_COUNT, and UTEST.

Referenced by runTests().

+ Here is the caller graph for this function:

◆ testSelfAssignment()

void TestIrrPtr::testSelfAssignment ( )

References UASSERT, and UASSERT_REFERENCE_COUNT.

Referenced by runTests().

+ Here is the caller graph for this function:

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